Browse Source

[commands] Fix Command duplicates in `HelpCommand.get_bot_mapping`

pull/6318/head
Alex Nørgaard 4 years ago
committed by GitHub
parent
commit
c72dbf28ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/ext/commands/help.py

2
discord/ext/commands/help.py

@ -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

Loading…
Cancel
Save