From c077a180ef8ce0a36381723db343f49a4ee9034c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 28 Feb 2020 15:10:30 -0500 Subject: [PATCH] Fix wrong reference --- structures/phone/PhoneCall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/structures/phone/PhoneCall.js b/structures/phone/PhoneCall.js index 5dd974d8..f80ef0e7 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -12,6 +12,7 @@ module.exports = class PhoneCall { } async start() { + await this.origin.send(`☎️ Calling **${this.recipient.guild.name}**...`); await this.recipient.send(`☎️ Incoming call from **${this.origin.guild.name}**. Pick up?`); const validation = await verify(this.recipient, null); if (!validation) { @@ -60,7 +61,7 @@ module.exports = class PhoneCall { setTimeout() { if (this.timeout) clearTimeout(this.timeout); - this.timeout = this.setTimeout(() => this.hangup('time'), 60000); + this.timeout = setTimeout(() => this.hangup('time'), 60000); return this.timeout; } };