From 5953ec764e4ac87abc00e80fa8db90a815678cd6 Mon Sep 17 00:00:00 2001 From: John Marlo Date: Fri, 1 Apr 2022 16:32:50 +0800 Subject: [PATCH] fix error.. --- src/structures/MessagePayload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/MessagePayload.js b/src/structures/MessagePayload.js index d9346b7..67a28db 100644 --- a/src/structures/MessagePayload.js +++ b/src/structures/MessagePayload.js @@ -121,12 +121,12 @@ class MessagePayload { * Resolves data. * @returns {MessagePayload} */ - resolveData() { + async resolveData() { if (this.data) return this; const isInteraction = this.isInteraction; const isWebhook = this.isWebhook; - const content = this.makeContent(); + let content = this.makeContent(); const tts = Boolean(this.options.tts); let nonce; @@ -202,7 +202,7 @@ class MessagePayload { //while loop to make sure all embeds will be added to the content while (this.options.embeds.length) { const embed = this.options.embeds.shift(); - const data = await embed.toMessage(true, true); //set to true hidden, shorten... + const data = await embed.toMessage(); content +=`\n${data}` } }