From 60cf45412236a376b7e487561da29b66c1814b4d Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 15 Oct 2017 15:45:03 -0500 Subject: [PATCH] Correct how to handle when permissions are missing --- cogs/misc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/misc.py b/cogs/misc.py index cb177f7..514d7b8 100644 --- a/cogs/misc.py +++ b/cogs/misc.py @@ -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