Fix access for groups command
This commit is contained in:
1
bot.py
1
bot.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user