mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Can't call own channel
This commit is contained in:
@@ -61,6 +61,7 @@ module.exports = class PhoneCommand extends Command {
|
||||
if (!channel.topic || !channel.topic.includes('<xiao:phone>')) {
|
||||
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.');
|
||||
|
||||
Reference in New Issue
Block a user