Skip to content

Commit

Permalink
πŸ› Nasty bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Aug 25, 2024
1 parent 06ee7b7 commit fea484a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions extensions/config/levelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ def __init__(self):

super().__init__(placeholder="Change an option...", min_values=1, max_values=1, options=options)

async def interaction_check(self, interaction: Interaction) -> bool:
if interaction.user and interaction.user.id in (self.ctx.bot.owner_id, self.ctx.author.id):
return True

messages = random.choice(constants.NOT_YOUR_BUTTON)
await interaction.response.send_message(random.choice(messages).format(user=self.ctx.author.display_name), ephemeral=True)
return False

async def callback(self, interaction: Interaction):
if interaction.guild:
data = await interaction.client.pool.fetchrow(
Expand Down

0 comments on commit fea484a

Please sign in to comment.