|
|
@ -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) |
|
|
|