diff --git a/commands/phone/phone.js b/commands/phone/phone.js index 27abd6e5..26fc6352 100644 --- a/commands/phone/phone.js +++ b/commands/phone/phone.js @@ -47,10 +47,10 @@ module.exports = class PhoneCommand extends Command { && channel.topic && channel.topic.includes('') && !channel.topic.includes('') - && !channel.topic.includes(``) + && !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.channel.topic && !msg.channel.topic.includes(``) : true) + && (msg.guild ? msg.channel.topic && !msg.channel.topic.includes(``) : true) && (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...');