From 15795e792791a32436c2f205ce32401dc8855367 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 8 Mar 2021 18:30:56 -0500 Subject: [PATCH] Can't call own channel --- commands/phone/phone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/phone/phone.js b/commands/phone/phone.js index 69709ce9..f0be657c 100644 --- a/commands/phone/phone.js +++ b/commands/phone/phone.js @@ -61,6 +61,7 @@ module.exports = class PhoneCommand extends Command { if (!channel.topic || !channel.topic.includes('')) { return msg.reply('That channel does not allow phone calls.'); } + if (msg.channel.id === channel.id) return msg.reply('You are literally in that channel right now.'); if (this.client.phone.inCall(channel)) return msg.reply('That channel is already in a call.'); if (this.client.phone.isBlocked(msg.channel, channel, msg.author)) { return msg.reply('That channel has blocked this channel from calling them.');