Skip to content

Commit

Permalink
Remove implicit defer call in view.py (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihitoko committed Apr 13, 2022
1 parent 9116cb2 commit d3d21f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions discord/ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ async def _scheduled_task(self, item: Item, interaction: Interaction):
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)

Expand Down

0 comments on commit d3d21f4

Please sign in to comment.