From 1407e9c4e1c4b6eeeef23f734cba7e7e92b9c4b6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 1 Dec 2020 20:28:02 -0500 Subject: [PATCH] Fix --- commands/phone/phone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/phone/phone.js b/commands/phone/phone.js index 26fc6352..fb37229a 100644 --- a/commands/phone/phone.js +++ b/commands/phone/phone.js @@ -58,7 +58,8 @@ module.exports = class PhoneCommand extends Command { if (channelID) { if (channelID === 'count') return msg.say(`☎️ **${channels.size}** currently open lines.`); channel = this.client.channels.cache.get(channelID); - if (!channel || !channel.guild) return msg.reply('This channel does not exist.'); + if (!channel) return msg.reply('This channel does not exist.'); + if (!channel.guild) return msg.reply('You cannot call DM channels.'); if (!channel.topic || !channel.topic.includes('')) { return msg.reply('This channel does not allow phone calls.'); }