Add "showing 10" if phone book results are high

This commit is contained in:
Dragon Fire
2021-02-11 17:22:55 -05:00
parent b735c59872
commit 6ea3c4874f
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class PhoneBookCommand extends Command {
});
if (!channels.size) return msg.reply('Could not find any results.');
return msg.say(stripIndents`
__**Results:**__ _(${channels.size} Results)_
__**Results:**__ _(${channels.size} Results${channels.size > 10 ? ', Showing 10' : ''})_
${channels.map(c => `**${c.id}** (#${c.name}: ${c.guild.name})`).slice(0, 10).join('\n')}
`);
}