mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Send a message on guild join
This commit is contained in:
@@ -81,7 +81,7 @@ module.exports = class HelpCommand extends Command {
|
||||
__Command **${command.name}**__${command.guildOnly ? ' (Usable only in servers)' : ''}
|
||||
${command.description}${command.details ? `\n${command.details}` : ''}
|
||||
|
||||
**Format:** ${msg.anyUsage(`${command.name} ${command.format || ''}`)}
|
||||
**Format:** ${command.usage(command.format || '')}
|
||||
**Aliases:** ${command.aliases.join(', ') || 'None'}
|
||||
**Group:** ${command.group.name} (\`${command.groupID}:${command.memberName}\`)
|
||||
**NSFW:** ${command.nsfw ? 'Yes' : 'No'}
|
||||
|
||||
@@ -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