mirror of
https://github.com/Lilac-Rose/Lacie.git
synced 2026-09-12 02:56:30 -05:00
Merge pull request #1 from AZthemute/main
Fix birthday channel permission check
This commit is contained in:
@@ -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("""
|
||||
|
||||
Reference in New Issue
Block a user