mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Send a message on guild join
This commit is contained in:
@@ -21,9 +21,8 @@ module.exports = class UnknownCommandCommand extends Command {
|
||||
const command = msg.content.match(this.client.dispatcher._commandPatterns[this.client.commandPrefix]);
|
||||
const str = command ? command[2] : msg.content.split(' ')[0];
|
||||
const results = didYouMean(str, commands, { returnType: ReturnTypeEnums.ALL_SORTED_MATCHES });
|
||||
const inGuild = msg.guild ? undefined : null;
|
||||
return msg.reply(stripIndents`
|
||||
Unknown command. Use ${msg.anyUsage('help', inGuild, inGuild)} 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(', ')}` : ''}
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user