[commands] Fix Command duplicates in HelpCommand.get_bot_mapping

This commit is contained in:
Alex Nørgaard 2021-01-16 10:36:08 +00:00 committed by GitHub
parent 941e1efcb6
commit c72dbf28ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ class HelpCommand:
cog: cog.get_commands()
for cog in bot.cogs.values()
}
mapping[None] = [c for c in bot.all_commands.values() if c.cog is None]
mapping[None] = [c for c in bot.commands if c.cog is None]
return mapping
@property