Skip to content

Commit

Permalink
fixed avatar bug with whois command
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinTrinh1227 committed Aug 6, 2024
1 parent 3a6b10d commit ac43daf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/userinfo.py → commands/whois.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async def whois(self, ctx, user:discord.Member=None):
timestamp = ctx.message.created_at
)
#embed.set_thumbnail(url = user.avatar.url)
embed.set_thumbnail(url = "{}".format(user.avatar.url))
if(user.avatar):
embed.set_thumbnail(url = "{}".format(user.avatar.url))
embed.set_footer(text = f"Requested by {ctx.author}", icon_url=ctx.author.avatar.url) #ctx.guild.icon.url for server icon
embed.add_field(name = "ID:", value=user.id, inline=False)
embed.add_field(name="Name:", value=user.display_name, inline=False)
Expand Down

0 comments on commit ac43daf

Please sign in to comment.