Limit /roles create to administrator permission
This commit is contained in:
parent
04a51e3695
commit
7275c83e98
1
main.py
1
main.py
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue