Browse Source

Remove automatic defer behaviour from View and Modal

This doesn't make as much sense anymore now that
InteractionResponse.edit_message exists.
pull/7696/head
Rapptz 3 years ago
parent
commit
26457b6d50
  1. 2
      discord/ui/modal.py
  2. 2
      discord/ui/view.py

2
discord/ui/modal.py

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

2
discord/ui/view.py

@ -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…
Cancel
Save