Fix access for groups command

This commit is contained in:
2021-03-12 14:43:01 +01:00
parent 06c724a65c
commit d3d2454af5

1
bot.py
View File

@@ -352,6 +352,7 @@ async def group_command(ctx: commands.Context, subcommand: Optional[str], arg: O
members: commands.Greedy[discord.Member]):
if not ctx.author.guild_permissions.manage_roles:
await ctx.send("Access denied!")
return
if subcommand is None:
await ctx.send("Available commands: `list`, `create`, `archive`")
return