From 7275c83e98685fd8ae5c3d217c600ff1ddc95697 Mon Sep 17 00:00:00 2001 From: fanyx Date: Tue, 23 Jan 2024 20:51:30 +0100 Subject: [PATCH] Limit /roles create to administrator permission --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index dcd903b..702529a 100755 --- a/main.py +++ b/main.py @@ -30,6 +30,7 @@ roles = app_commands.Group(name="roles", description="Manage role dialogues") # Commands ## Group: roles @commands.guild_only() +@commands.has_permissions(administrator=True) @roles.command(name="create") async def roles_create_button(interaction: discord.Interaction): await interaction.response.send_message(view=RoleSelectView())