Restrict groups command

This commit is contained in:
2021-03-12 14:29:37 +01:00
parent 4aa1d6f77e
commit 476e8c391f

2
bot.py
View File

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