From 6c45f118d54886f21ffe9838625ce7d27f23cbff Mon Sep 17 00:00:00 2001 From: Crawl Date: Wed, 18 Mar 2020 05:12:03 +0100 Subject: [PATCH] Update APIMessage.js --- src/structures/APIMessage.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/structures/APIMessage.js b/src/structures/APIMessage.js index f2ca68b2..99562511 100644 --- a/src/structures/APIMessage.js +++ b/src/structures/APIMessage.js @@ -111,9 +111,11 @@ class APIMessage { let replyPrefix = ''; if (this.options.reply && !this.isUser && this.target.type !== 'dm') { const id = this.target.client.users.resolveID(this.options.reply); - replyPrefix = this.options.replyPrefixer ? this.options.replyPrefixer(this.options.reply) : - this.target.client.options.replyPrefixer ? this.target.client.options.replyPrefixer(this.options.reply) : - `<@${this.options.reply instanceof GuildMember && this.options.reply.nickname ? '!' : ''}${id}>, `; + replyPrefix = this.options.replyPrefixer + ? this.options.replyPrefixer(this.options.reply) + : this.target.client.options.replyPrefixer + ? this.target.client.options.replyPrefixer(this.options.reply) + : `<@${this.options.reply instanceof GuildMember && this.options.reply.nickname ? '!' : ''}${id}>, `; if (isSplit) splitOptions.prepend = `${replyPrefix}${splitOptions.prepend || ''}`; }