mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 15:57:42 +02:00
ownerOrigin -> adminCall
This commit is contained in:
@@ -18,7 +18,7 @@ module.exports = class HangUpCommand extends Command {
|
||||
if (!origin && !recipient) return msg.reply('☎️ This channel is not in a phone call.');
|
||||
const call = origin || recipient;
|
||||
if (!call.active) return msg.reply('☎️ This call is not currently active.');
|
||||
if (call.ownerOrigin && !this.client.isOwner(msg.author)) {
|
||||
if (call.adminCall && !this.client.isOwner(msg.author)) {
|
||||
return msg.reply('☎️ You cannot hang up in an admin call.');
|
||||
}
|
||||
const nonQuitter = msg.channel.id === call.origin.id ? call.recipient : call.origin;
|
||||
|
||||
@@ -27,7 +27,7 @@ module.exports = class PhoneInfoCommand extends Command {
|
||||
.addField('❯ Recipient Server', otherChannel.guild.name, true)
|
||||
.addField('❯ Recipient ID', otherChannel.id, true)
|
||||
.addField('❯ Call Duration', call.durationDisplay, true)
|
||||
.addField('❯ Admin Call?', call.ownerOrigin ? 'Yes' : 'No', true)
|
||||
.addField('❯ Admin Call?', call.adminCall ? 'Yes' : 'No', true)
|
||||
.addField('❯ Started By', call.startUser.tag, true);
|
||||
return msg.embed(embed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user