diff --git a/commands/userinfo.py b/commands/whois.py similarity index 94% rename from commands/userinfo.py rename to commands/whois.py index ad75d5d..a5a0059 100644 --- a/commands/userinfo.py +++ b/commands/whois.py @@ -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)