mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -59,7 +59,7 @@ module.exports = class PhoneCall {
|
||||
|
||||
send(channel, msg, hasText, hasImage, hasEmbed) {
|
||||
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.hangup(channel);
|
||||
|
||||
Reference in New Issue
Block a user