fix hidden command shown to regular user instead of mods
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2024-01-24 20:55:28 +01:00
parent 114701c230
commit 1b4045ee81
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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: "