From d03ac61dffe1f2d9e49a5826cfc7c84130e90908 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 16 May 2020 10:27:04 -0400 Subject: [PATCH] Fix --- commands/phone/hang-up.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/phone/hang-up.js b/commands/phone/hang-up.js index fc527a99..4ecbb4d1 100644 --- a/commands/phone/hang-up.js +++ b/commands/phone/hang-up.js @@ -12,8 +12,8 @@ module.exports = class HangUpCommand extends Command { } async run(msg) { - const origin = client.phone.find(call => call.origin.id === msg.channel.id); - const recipient = client.phone.find(call => call.recipient.id === msg.channel.id); + const origin = this.client.phone.find(call => call.origin.id === msg.channel.id); + const recipient = this.client.phone.find(call => call.recipient.id === msg.channel.id); 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.');