Browse Source

Make roles guild only

news
Daniel Skýpala 2 years ago
parent
commit
20f0756f99
  1. 3
      hrochobot/cogs/roles.py

3
hrochobot/cogs/roles.py

@ -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…
Cancel
Save