fix: Add response defer for slash_change_avatar command to improve user experience

This commit is contained in:
Slipstream 2025-05-19 16:35:42 -06:00
parent 154d7d665d
commit 5122053a4e
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -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: