diff --git a/commands/phone/hang-up.js b/commands/phone/hang-up.js index 4ecbb4d1..33df0e8b 100644 --- a/commands/phone/hang-up.js +++ b/commands/phone/hang-up.js @@ -4,6 +4,7 @@ module.exports = class HangUpCommand extends Command { constructor(client) { super(client, { name: 'hang-up', + aliases: ['hang'], group: 'phone', memberName: 'hang-up', description: 'Hangs up the current phone call.', diff --git a/package.json b/package.json index 4139b9a3..bb00fc19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "120.1.0", + "version": "121.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index 0c487ac3..9f0720a0 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -92,12 +92,6 @@ 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 && !this.client.isOwner(msg.author)) { - return this.recipient.send('☎️ You cannot hang up in an admin call.'); - } - return this.hangup(channel); - } if (this.cooldown.has(msg.author.id) && !this.client.isOwner(msg.author)) { const badChannel = channel.id === this.origin.id ? this.recipient : this.origin; return badChannel.send(`☎️ ${msg.author}, slow down! You're sending messages too fast!`);