mirror of https://github.com/stijndcl/didier
fixes #109
parent
82671896b6
commit
b156f90ea0
11
cogs/help.py
11
cogs/help.py
|
@ -50,7 +50,16 @@ class HelpCommand(commands.MinimalHelpCommand):
|
||||||
return await self.send_bot_help(self.get_bot_mapping())
|
return await self.send_bot_help(self.get_bot_mapping())
|
||||||
|
|
||||||
# Turn dic to lowercase to allow proper name searching
|
# Turn dic to lowercase to allow proper name searching
|
||||||
all_commands = dict((k.lower(), v) for k, v in bot.all_commands.items() if not isinstance(v, SlashCommand))
|
all_commands = {}
|
||||||
|
|
||||||
|
for k, v in bot.all_commands.items():
|
||||||
|
if k is None or v is None:
|
||||||
|
continue
|
||||||
|
|
||||||
|
if isinstance(v, SlashCommand):
|
||||||
|
continue
|
||||||
|
|
||||||
|
all_commands[k.lower()] = v
|
||||||
|
|
||||||
if spl[0].lower() not in all_commands:
|
if spl[0].lower() not in all_commands:
|
||||||
return await self.send_error_message(await self.command_not_found(spl[0]))
|
return await self.send_error_message(await self.command_not_found(spl[0]))
|
||||||
|
|
Loading…
Reference in New Issue