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:
Rapptz 2022-03-15 10:29:58 -04:00
parent e5461c73b6
commit 26457b6d50
2 changed files with 0 additions and 4 deletions

View File

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

View File

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