This commit is contained in:
Dragon Fire
2024-05-16 17:22:20 -04:00
parent b77d7cdf4b
commit d6ef8afeb8
2 changed files with 6 additions and 5 deletions
+6 -1
View File
@@ -74,7 +74,12 @@ module.exports = class CommandClient extends Client {
const parsed = await this.dispatcher.parseMessage(msg);
if (parsed.error) {
const helpUsage = this.registry.commands.get('help').usage(parsed.command.name);
await msg.reply(`${parsed.error}\n\nUse ${helpUsage} for more information.`);
await msg.reply(stripIndents`
${parsed.error}
Use ${helpUsage} for more information.
Example: ${parsed.command.example(msg)}
`);
return;
}
const { command, args } = parsed;