Skip to content

Commit

Permalink
Accept item in interaction_check (fixes #149)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Apr 1, 2022
1 parent ae236f9 commit 1da71e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jishaku/shim/paginator_200.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1da71e9

Please sign in to comment.