mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
make sure to not double defer
This commit is contained in:
1 parent
0df85baa70
commit
d800756d3a
1 file changed
+2
-1
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user