|
@ -12,6 +12,7 @@ class Roles(commands.Cog): |
|
|
secret_roles = discord.SlashCommandGroup( |
|
|
secret_roles = discord.SlashCommandGroup( |
|
|
"secretroles", |
|
|
"secretroles", |
|
|
"Commands for management of secret roles.", |
|
|
"Commands for management of secret roles.", |
|
|
|
|
|
guild_only=True, |
|
|
checks=[commands.has_permissions(manage_roles=True)] |
|
|
checks=[commands.has_permissions(manage_roles=True)] |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@ -53,7 +54,7 @@ class Roles(commands.Cog): |
|
|
ephemeral=True |
|
|
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.") |
|
|
@discord.option("password", str, description="Password for secret role.") |
|
|
async def secretrole(self, ctx, password): |
|
|
async def secretrole(self, ctx, password): |
|
|
roles = data.load_data(ROLES_JSON) |
|
|
roles = data.load_data(ROLES_JSON) |
|
|