mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Fix
This commit is contained in:
@@ -20,7 +20,8 @@ module.exports = class HangUpCommand extends Command {
|
|||||||
if (call.adminCall && !this.client.isOwner(msg.author)) {
|
if (call.adminCall && !this.client.isOwner(msg.author)) {
|
||||||
return msg.reply('☎️ You cannot hang up in an admin call.');
|
return msg.reply('☎️ You cannot hang up in an admin call.');
|
||||||
}
|
}
|
||||||
if (this.client.isBlockedFromPhone(origin, recipient, msg.author)) {
|
const otherChannel = call.origin.id === msg.channel.id ? call.recipient : call.origin;
|
||||||
|
if (this.client.isBlockedFromPhone(msg.channel, otherChannel, msg.author)) {
|
||||||
return msg.reply('☎️ You are blocked from hanging up this phone call.');
|
return msg.reply('☎️ You are blocked from hanging up this phone call.');
|
||||||
}
|
}
|
||||||
const nonQuitter = msg.channel.id === call.origin.id ? call.recipient : call.origin;
|
const nonQuitter = msg.channel.id === call.origin.id ? call.recipient : call.origin;
|
||||||
|
|||||||
Reference in New Issue
Block a user