From a00dafad9619753c4cd9f7aa9036d03370cc230d Mon Sep 17 00:00:00 2001 From: tookender Date: Sun, 25 Aug 2024 21:23:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20stinky=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/config/levelling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/config/levelling.py b/extensions/config/levelling.py index 7319939..66b10b0 100644 --- a/extensions/config/levelling.py +++ b/extensions/config/levelling.py @@ -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)