Removing .format()

pull/8/head
sgoudham 4 years ago
parent 4219e681c8
commit d3acc4bd39

@ -278,7 +278,7 @@ class Fun(Cog):
colour=self.bot.random_colour(),
timestamp=datetime.datetime.utcnow())
doggo_embed.set_image(url=image_link)
doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))
doggo_embed.set_footer(text=f"Requested by {member}", icon_url=userAvatar)
# Send the doggo image
await ctx.send(embed=doggo_embed)
@ -305,7 +305,7 @@ class Fun(Cog):
colour=self.bot.random_colour(),
timestamp=datetime.datetime.utcnow())
doggo_embed.set_image(url=image_link)
doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))
doggo_embed.set_footer(text=f"Requested by {member}", icon_url=userAvatar)
# Send random doggo image to the channel
await ctx.send(embed=doggo_embed)

@ -196,7 +196,7 @@ class Info(Cog):
timestamp=datetime.datetime.utcnow()
)
embed.set_thumbnail(url=userAvatar)
embed.set_footer(text=f"ID: {member.id}", icon_url='{}'.format(userAvatar))
embed.set_footer(text=f"ID: {member.id}", icon_url=userAvatar)
# Define fields to be added into the embed
embed_fields = [("Name", member.mention, True),
@ -284,7 +284,7 @@ class Info(Cog):
colour=self.bot.random_colour(),
timestamp=datetime.datetime.utcnow())
embed.set_thumbnail(url=guild_icon)
embed.set_footer(text=f"ID: {guild_id}", icon_url='{}'.format(guild_icon))
embed.set_footer(text=f"ID: {guild_id}", icon_url=guild_icon)
# Get the list of banned users from the server
bans = len(await ctx.guild.bans()) if perms.ban_members else "N/A"

Loading…
Cancel
Save