make sure to not double defer

This commit is contained in:
leander committed 2026-10-24 03:38:46 +02:00
1 parent 0df85baa70
commit d800756d3a
1 file changed
+2 -1
+2 -1
View File
@@ -135,7 +135,8 @@ class Errors(commands.Cog):
error (app_commands.AppCommandError): Eror context object
"""
await interaction.response.defer()
if not interaction.response.is_done():
await interaction.response.defer()
# Log command usage, just in case
await self.on_app_command_completion(interaction, interaction.command)