fields.flat is not a function discord.js
Re-Install Node.js because Discord.js Embeds only work on node version 12 and up
fields.flat is not a function discord.js
Re-Install Node.js because Discord.js Embeds only work on node version 12 and up
fields.flat is not a function
//node_modules/discord.js/src/structures/MessageEmbed.js
static normalizeFields(...fields) {
return fields
.reduce((acc, val) => acc.concat(val), [])
.map(field =>
this.normalizeField(
field && field.name,
field && field.value,
field && typeof field.inline === 'boolean' ? field.inline : false,
),
);
}
fields.flat is not a function
// Patched into :
static normalizeFields(...fields) {
return fields
.reduce((acc, val) => acc.concat(val), [])
.map(field =>
this.normalizeField(
field && field.name,
field && field.value,
field && typeof field.inline === 'boolean' ? field.inline : false,
),
);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us