From ff7e3071b6250a6e0e5d629b8f18fde7de30cb30 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 1 Dec 2020 20:16:18 -0500 Subject: [PATCH] Fix --- commands/phone/phone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/phone/phone.js b/commands/phone/phone.js index b389ee2e..27abd6e5 100644 --- a/commands/phone/phone.js +++ b/commands/phone/phone.js @@ -48,10 +48,10 @@ module.exports = class PhoneCommand extends Command { && channel.topic.includes('') && !channel.topic.includes('') && !channel.topic.includes(``) - && (msg.guild && !channel.topic.includes(``)) + && (msg.guild ? !channel.topic.includes(``) : true) && (msg.channel.topic && !msg.channel.topic.includes(``)) && (msg.channel.topic && !msg.channel.topic.includes(``)) - && (msg.guild && !msg.guild.channels.cache.has(channel.id)) + && (msg.guild ? !msg.guild.channels.cache.has(channel.id) : true) && (channelID ? true : !this.client.inPhoneCall(channel))); if (!channels.size) return msg.reply('No channels currently allow phone calls...'); let channel;