fix error..

This commit is contained in:
John Marlo 2022-04-01 16:32:50 +08:00 committed by GitHub
parent 0bdc325a34
commit 5953ec764e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`
}
}