Don't add commands users can't run
This commit is contained in:
parent
e282e1e073
commit
064e182dde
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue