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