diff --git a/commands/other/phone-book.js b/commands/other/phone-book.js index 588bd094..92fc4b2b 100644 --- a/commands/other/phone-book.js +++ b/commands/other/phone-book.js @@ -26,12 +26,11 @@ module.exports = class PhoneBookCommand extends Command { && channel.topic && channel.topic.includes('') && !channel.topic.includes('') - && !msg.guild.channels.cache.has(channel.id) && (channel.guild.name.toLowerCase().includes(search) || channel.name.includes(search)); }); if (!channels.size) return msg.reply('Could not find any results.'); return msg.say(stripIndents` - _**Results:**__ _(${channels.size} Results)_ + __**Results:**__ _(${channels.size} Results)_ ${channels.map(c => `**${c.id}** (#${c.name}: ${c.guild.name})`).slice(0, 10).join('\n')} `) }