From 476e8c391f14af1fba4a5df2936118f2d66dd23e Mon Sep 17 00:00:00 2001 From: Siphalor Date: Fri, 12 Mar 2021 14:29:37 +0100 Subject: [PATCH] Restrict groups command --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index 50d2723..4a3ae1c 100644 --- a/bot.py +++ b/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") async def group_command(ctx: commands.Context, subcommand: Optional[str], arg: Optional[str], members: commands.Greedy[discord.Member]): + if not ctx.author.guild_permissions.manage_roles: + await ctx.send("Access denied!") if subcommand is None: await ctx.send("Available commands: `list`, `create`, `archive`") return