Fixing passing None to thumbnail in help command

This commit is contained in:
Rafael Vargas 2023-03-19 15:43:40 -03:00
parent 8f18ef3f2e
commit 6c15345eac

View File

@ -74,7 +74,8 @@ class ControlCog(Cog):
colour=self.__colors.BLUE
)
embedhelp.set_thumbnail(url=self.__bot.user.avatar)
if self.__bot.user.avatar != None:
embedhelp.set_thumbnail(url=self.__bot.user.avatar)
await ctx.send(embed=embedhelp)
@command(name='invite', help=helper.HELP_INVITE, description=helper.HELP_INVITE_LONG, aliases=['convite', 'inv', 'convidar'])