fields.flat is not a function
Re-Install Node.js because Discord.js Embeds only work on node version 12 and up
4.17
6
// 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,
),
);
}
Thank you!
6
0
4
3
//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,
),
);
}
Thank you!
3
0
4
1
update node.js
Thank you!
1
0
Are there any code examples left?
New code examples in category Other