Limit /roles create to administrator permission

This commit is contained in:
fanyx 2024-01-23 20:51:30 +01:00
parent 04a51e3695
commit 7275c83e98
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ roles = app_commands.Group(name="roles", description="Manage role dialogues")
# Commands # Commands
## Group: roles ## Group: roles
@commands.guild_only() @commands.guild_only()
@commands.has_permissions(administrator=True)
@roles.command(name="create") @roles.command(name="create")
async def roles_create_button(interaction: discord.Interaction): async def roles_create_button(interaction: discord.Interaction):
await interaction.response.send_message(view=RoleSelectView()) await interaction.response.send_message(view=RoleSelectView())