Fix usage in unknown command

This commit is contained in:
Dragon Fire
2024-04-20 14:20:35 -04:00
parent e6aaf12c13
commit 5a4c1f5ed9
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class UnknownCommandCommand extends Command {
const str = command ? command[2] : msg.content.split(' ')[0];
const results = didYouMean(str, commands, { returnType: ReturnTypeEnums.ALL_SORTED_MATCHES });
return msg.reply(stripIndents`
Unknown command. Use ${this.client.registry.commands.get('help').usage()} to view the command list.
Unknown command. Use ${this.client.registry.commands.get('help').usage('')} to view the command list.
${results.length ? `Did You Mean: ${results.slice(0, 5).map(c => `\`${c}\``).join(', ')}` : ''}
`);