mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:23:12 +00:00
Refactor interaction_check method in IntroductionFinishButtons
This commit is contained in:
parent
7931957ec0
commit
a1bcecfc61
1 changed files with 6 additions and 7 deletions
|
@ -69,11 +69,10 @@ class IntroductionFinishButtons(View):
|
|||
self.stop()
|
||||
|
||||
async def interaction_check(self, interaction: discord.Interaction) -> bool:
|
||||
if interaction.user != self.ctx.author:
|
||||
await interaction.response.send_message(
|
||||
"You can't use these buttons.",
|
||||
ephemeral=True,
|
||||
)
|
||||
return False
|
||||
else:
|
||||
if interaction.user == self.ctx.author:
|
||||
return True
|
||||
await interaction.response.send_message(
|
||||
"You can't use these buttons.",
|
||||
ephemeral=True,
|
||||
)
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue