From ff6bc7f51232b04d8903eb8807bbb34e40e88b01 Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Thu, 15 May 2025 10:54:44 -0700 Subject: [PATCH] Require webhook permission for Discord integration --- backend-flask/discord_bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend-flask/discord_bot.py b/backend-flask/discord_bot.py index c8caf38..3fec968 100644 --- a/backend-flask/discord_bot.py +++ b/backend-flask/discord_bot.py @@ -102,6 +102,7 @@ client = Client(command_prefix="!", intents=intents) description="Set up announcements webhook in this channel", guild=guild_id ) +@discord.app_commands.default_permissions(manage_webhooks=True) async def setup_announcements(interaction: discord.Interaction): await interaction.response.send_message( "Setting up announcement webhook. Any existing webhooks madde by " +