mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-01-20 15:12:59 -05:00
Fix http errors for interaction deferring and message changes (#6229)
This commit is contained in:
@@ -37,6 +37,7 @@ class _GenericButton(discord.ui.Button):
|
||||
self.func = func
|
||||
|
||||
async def callback(self, interaction: discord.Interaction):
|
||||
await interaction.response.defer()
|
||||
ctx = self.view.ctx
|
||||
pages = self.view.source.entries
|
||||
controls = None
|
||||
@@ -52,7 +53,6 @@ class _GenericButton(discord.ui.Button):
|
||||
await self.func(ctx, pages, controls, message, page, timeout, emoji)
|
||||
except Exception:
|
||||
pass
|
||||
await interaction.response.defer()
|
||||
|
||||
|
||||
async def menu(
|
||||
|
||||
Reference in New Issue
Block a user