fix: Add response defer for slash_change_avatar command to improve user experience
This commit is contained in:
parent
154d7d665d
commit
5122053a4e
@ -66,6 +66,7 @@ class BotAppearanceCog(commands.Cog):
|
||||
@app_commands.checks.has_permissions(administrator=True)
|
||||
async def slash_change_avatar(self, interaction: discord.Interaction, image_url: str = None, attachment: discord.Attachment = None):
|
||||
"""Changes the bot's global avatar. Accepts a direct image URL or an attachment."""
|
||||
await interaction.response.defer(ephemeral=True)
|
||||
image_bytes = None
|
||||
|
||||
if attachment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user