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)
|
author = cast(Chatter, ctx.author)
|
||||||
for command in listCommands(self.client):
|
for command in listCommands(self.client):
|
||||||
name = command.name
|
name = command.name
|
||||||
if command.no_global_checks and author.is_mod:
|
if command.no_global_checks and not author.is_mod:
|
||||||
continue
|
continue
|
||||||
if command.aliases:
|
if command.aliases:
|
||||||
name += " (alias: "
|
name += " (alias: "
|
||||||
|
|
Loading…
Reference in a new issue