This returns an array always

This commit is contained in:
Dragon Fire
2020-03-01 21:04:17 -05:00
parent 826c5ce99b
commit 813ceabd84
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class UnknownCommandCommand extends Command {
return msg.reply(stripIndents`
Unknown command. Use ${msg.anyUsage('help', inGuild, inGuild)} to view the command list.
${results ? `Did You Mean: ${results.slice(0, 5).map(c => `\`${c}\``).join(',')}` : ''}
${results.length ? `Did You Mean: ${results.slice(0, 5).map(c => `\`${c}\``).join(',')}` : ''}
`);
}