From 1da71e90cedcbcb2c8470502677229189635931e Mon Sep 17 00:00:00 2001 From: Devon R Date: Sat, 2 Apr 2022 01:12:54 +0900 Subject: [PATCH] Accept item in interaction_check (fixes #149) --- jishaku/shim/paginator_200.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jishaku/shim/paginator_200.py b/jishaku/shim/paginator_200.py index 6f74934b..ac389714 100644 --- a/jishaku/shim/paginator_200.py +++ b/jishaku/shim/paginator_200.py @@ -259,8 +259,10 @@ async def wait_loop(self): else: await self.message.edit(view=None) - async def interaction_check(self, interaction: discord.Interaction): + async def interaction_check(self, *args): """Check that determines whether this interaction should be honored""" + *_, interaction = args # #149 + interaction: discord.Interaction return not self.owner or interaction.user.id == self.owner.id @ui.button(label="1 \u200b \N{BLACK LEFT-POINTING DOUBLE TRIANGLE WITH VERTICAL BAR}", style=discord.ButtonStyle.secondary)