Make roles guild only
This commit is contained in:
parent
ac37d8ed56
commit
20f0756f99
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ class Roles(commands.Cog):
|
|||
secret_roles = discord.SlashCommandGroup(
|
||||
"secretroles",
|
||||
"Commands for management of secret roles.",
|
||||
guild_only=True,
|
||||
checks=[commands.has_permissions(manage_roles=True)]
|
||||
)
|
||||
|
||||
|
@ -53,7 +54,7 @@ class Roles(commands.Cog):
|
|||
ephemeral=True
|
||||
)
|
||||
|
||||
@discord.slash_command(description="Gives a secret role locked by a password.")
|
||||
@discord.slash_command(description="Gives a secret role locked by a password.", guild_only=True)
|
||||
@discord.option("password", str, description="Password for secret role.")
|
||||
async def secretrole(self, ctx, password):
|
||||
roles = data.load_data(ROLES_JSON)
|
||||
|
|
Loading…
Reference in a new issue