mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Fix
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = class PhoneCall {
|
|||||||
|
|
||||||
send(channel, msg, hasText, hasImage, hasEmbed) {
|
send(channel, msg, hasText, hasImage, hasEmbed) {
|
||||||
if (msg.content && msg.content.toLowerCase() === 'hang up') {
|
if (msg.content && msg.content.toLowerCase() === 'hang up') {
|
||||||
if (this.ownerOrigin && channel.id !== this.origin.id) {
|
if (this.ownerOrigin && channel.id === this.origin.id) {
|
||||||
return this.recipient.send('☎️ You cannot hang up in an admin call.');
|
return this.recipient.send('☎️ You cannot hang up in an admin call.');
|
||||||
}
|
}
|
||||||
return this.hangup(channel);
|
return this.hangup(channel);
|
||||||
|
|||||||
Reference in New Issue
Block a user