1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Correct how to handle when permissions are missing

This commit is contained in:
phxntxm 2017-10-15 15:45:03 -05:00
parent 549f72d660
commit 60cf454122

View file

@ -40,7 +40,10 @@ class Miscallaneous:
if command is None:
for cmd in utils.get_all_commands(self.bot):
if not await cmd.can_run(ctx) or not cmd.enabled:
try:
if not await cmd.can_run(ctx) or not cmd.enabled:
continue
except commands.errors.MissingPermissions:
continue
cog = cmd.cog_name