From c53aa62c54249786adc8277ba8ed1817b1b56eb4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 19 May 2020 14:06:03 -0400 Subject: [PATCH] Fix --- 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 18645d46..fd5f673f 100644 --- a/structures/phone/PhoneCall.js +++ b/structures/phone/PhoneCall.js @@ -49,7 +49,8 @@ module.exports = class PhoneCall { } else if (nonQuitter === 'declined') { const recipientMsg = validation === 0 ? 'Sent to voicemail.' : 'Declined the call.'; await this.recipient.send(`☎️ ${recipientMsg}`); - if (validation === 0 && channel.topic && !channel.topic.includes('')) { + const canVoicemail = this.recipient.topic && !this.recipient.topic.includes(''); + if (validation === 0 && canVoicemail) { await this.origin.send(`☎️ **${this.recipient.guild.name}** didn't answer... Leave a voicemail?`); const voicemailValidation = await verify(this.origin, null); if (!voicemailValidation) {