Skip to content

Commit

Permalink
πŸ› Fix stinky bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Aug 25, 2024
1 parent 71a1f1d commit a00dafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/config/levelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ def __init__(self, author):
self.add_item(ConfigLevellingDropdown())

async def interaction_check(self, interaction: Interaction) -> bool:
if interaction.user.id != self.author.id:
if interaction.user.id == self.author.id:
return True

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

@discord.ui.button(label="View Announcement Message", emoji="πŸ’¬", style=discord.ButtonStyle.blurple)
Expand Down

0 comments on commit a00dafa

Please sign in to comment.