1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Convert list comp to normal for loop

This commit is contained in:
Phxntxm 2017-03-26 22:13:36 -05:00
parent f6d143dd79
commit 20734739a8

View file

@ -45,7 +45,10 @@ class Core:
cmd = self.bot.get_command(message)
if cmd is None:
entries = sorted([cmd.qualified_name for cmd in utils.get_all_commands(self.bot) if (await cmd.can_run(ctx))])
entries = []
for cmd in utils.get_all_commands(self.bot):
if await cmd.can_run(ctx):
entries.append(cmd.qualified_name)
try:
pages = utils.Pages(self.bot, message=ctx.message, entries=entries)
await pages.paginate(start_page=page)