diff --git a/src/command/CommandDispatcher.ts b/src/command/CommandDispatcher.ts index 5343731b..029227cf 100644 --- a/src/command/CommandDispatcher.ts +++ b/src/command/CommandDispatcher.ts @@ -132,7 +132,8 @@ export class CommandDispatcher .split(' ')[0]; const command: Command = this._client.commands.find(c => - c.name === commandName || c.aliases.includes(commandName)); + c.name.toLowerCase() === commandName.toLowerCase() + || c.aliases.map(a => a.toLowerCase()).includes(commandName)); if (!command) return [false, null, null, null]; return [true, command, prefix, commandName]; diff --git a/test/commands/test_command.ts b/test/commands/test_command.ts index 2064f827..8f63bdd5 100644 --- a/test/commands/test_command.ts +++ b/test/commands/test_command.ts @@ -12,9 +12,7 @@ export default class extends Command super(client, { name: 'test', description: 'test command', - usage: 'test', - clientPermissions: ['MANAGE_GUILD'], - ratelimit: '2/10s' + usage: 'test' }); }