From 48332a1d837d8c04d7b7604315871cfc4f746185 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 24 Jul 2020 23:13:16 +0100 Subject: [PATCH] Getting rid of await can run --- cogs/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/help.py b/cogs/help.py index 9f9e15a8..0b6b421e 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -385,7 +385,7 @@ class HelpPaginator(Pages): except AttributeError: entries = [] else: - entries = [cmd for cmd in entries if (await _can_run(cmd, ctx)) and not cmd.hidden] + entries = [cmd for cmd in entries if not cmd.hidden] self = cls(ctx, entries) if not isinstance(command, discord.ext.commands.Group): @@ -423,7 +423,7 @@ class HelpPaginator(Pages): # ... for cog, commands in itertools.groupby(entries, key=key): - plausible = [cmd for cmd in commands if (await _can_run(cmd, ctx)) and not cmd.hidden] + plausible = [cmd for cmd in commands if not cmd.hidden] if len(plausible) == 0: continue