1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Don't add commands users can't run

This commit is contained in:
Phxntxm 2017-05-07 20:42:42 -05:00
parent e282e1e073
commit 064e182dde

View file

@ -38,6 +38,9 @@ class Miscallaneous:
entries = []
for cmd in utils.get_all_commands(self.bot):
if not await cmd.can_run(ctx):
continue
cog = cmd.cog_name
if cog in groups:
groups[cog].append(cmd)