mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Remove automatic defer behaviour from View and Modal
This doesn't make as much sense anymore now that InteractionResponse.edit_message exists.
This commit is contained in:
1 parent
e5461c73b6
commit
26457b6d50
2 files changed
-4
No files matched your search
@@ -192,8 +192,6 @@ class Modal(View):
|
||||
return
|
||||
|
||||
await self.on_submit(interaction)
|
||||
if not interaction.response._responded:
|
||||
await interaction.response.defer()
|
||||
except Exception as e:
|
||||
return await self.on_error(e, interaction)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user