From 730e3aa96787f16257f6a129d835ba1ae06496f8 Mon Sep 17 00:00:00 2001 From: AZthemute <104761702+AZthemute@users.noreply.github.com> Date: Sat, 29 Nov 2025 10:54:48 +0000 Subject: [PATCH] Fix birthday channel permission check --- birthday/birthday.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/birthday/birthday.py b/birthday/birthday.py index ba06963..b2b891c 100644 --- a/birthday/birthday.py +++ b/birthday/birthday.py @@ -246,11 +246,8 @@ class Birthday(commands.Cog): @birthday_group.command(name="channel", description="Set the channel for birthday announcements") @app_commands.describe(channel="Channel where birthday announcements will be sent") - async def set_channel(self, interaction: discord.Interaction, channel: discord.TextChannel): - if not ModerationBase.is_admin(): - await interaction.response.send_message("You do not have permission to use this command.", ephemeral=True) - return - + @ModerationBase.is_admin() + async def set_channel(self, interaction: discord.Interaction, channel: discord.TextChannel): conn = sqlite3.connect(self.db_path) c = conn.cursor() c.execute("""