mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +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:
parent
e5461c73b6
commit
26457b6d50
@ -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:
|
||||
|
@ -366,8 +366,6 @@ class View:
|
||||
return
|
||||
|
||||
await item.callback(interaction)
|
||||
if not interaction.response._responded:
|
||||
await interaction.response.defer()
|
||||
except Exception as e:
|
||||
return await self.on_error(e, item, interaction)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user