fix hidden command shown to regular user instead of mods
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
114701c230
commit
1b4045ee81
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class Commandes(Cog):
|
|||
author = cast(Chatter, ctx.author)
|
||||
for command in listCommands(self.client):
|
||||
name = command.name
|
||||
if command.no_global_checks and author.is_mod:
|
||||
if command.no_global_checks and not author.is_mod:
|
||||
continue
|
||||
if command.aliases:
|
||||
name += " (alias: "
|
||||
|
|
Loading…
Reference in a new issue