mirror of https://codeberg.org/soteria/sox.git
fix: don't assign avatar url if none present
This commit is contained in:
parent
86dba83c34
commit
da071903b9
|
|
@ -16,7 +16,8 @@ async def help_command(inter: disnake.CommandInteraction):
|
|||
for cmd in plugin.bot.global_application_commands:
|
||||
desc += f"**{cmd.name}** - {cmd.description}\n\n"
|
||||
em = disnake.Embed(title="Commands", description=desc)
|
||||
em.set_thumbnail(plugin.bot.user.avatar.url)
|
||||
if plugin.bot.user.avatar:
|
||||
em.set_thumbnail(plugin.bot.user.avatar.url)
|
||||
await inter.response.send_message(embed=em)
|
||||
|
||||
setup, teardown = plugin.create_extension_handlers()
|
||||
Loading…
Reference in New Issue