1
0
Fork 0
mirror of synced 2024-06-03 03:04:33 +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 = [] entries = []
for cmd in utils.get_all_commands(self.bot): for cmd in utils.get_all_commands(self.bot):
if not await cmd.can_run(ctx):
continue
cog = cmd.cog_name cog = cmd.cog_name
if cog in groups: if cog in groups:
groups[cog].append(cmd) groups[cog].append(cmd)