Restrict groups command
This commit is contained in:
2
bot.py
2
bot.py
@@ -350,6 +350,8 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str):
|
|||||||
@bot.command(name='groups', brief="Manage groups")
|
@bot.command(name='groups', brief="Manage groups")
|
||||||
async def group_command(ctx: commands.Context, subcommand: Optional[str], arg: Optional[str],
|
async def group_command(ctx: commands.Context, subcommand: Optional[str], arg: Optional[str],
|
||||||
members: commands.Greedy[discord.Member]):
|
members: commands.Greedy[discord.Member]):
|
||||||
|
if not ctx.author.guild_permissions.manage_roles:
|
||||||
|
await ctx.send("Access denied!")
|
||||||
if subcommand is None:
|
if subcommand is None:
|
||||||
await ctx.send("Available commands: `list`, `create`, `archive`")
|
await ctx.send("Available commands: `list`, `create`, `archive`")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user