pull/136/head
stijndcl 2022-03-31 20:03:00 +02:00
parent 82671896b6
commit b156f90ea0
1 changed files with 10 additions and 1 deletions

View File

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