sellix-discord-bot icon indicating copy to clipboard operation
sellix-discord-bot copied to clipboard

FIELDS.FLAT

Open spuqe opened this issue 3 years ago • 0 comments

Error while doing most commands, fields.flat is not a function. Couldn't find fix for this.

(node:45561) UnhandledPromiseRejectionWarning: TypeError: fields.flat is not a function
    at Function.normalizeFields (/root/sellix-discord-bot/node_modules/discord.js/src/structures/MessageEmbed.js:450:8)
    at MessageEmbed.addFields (/root/sellix-discord-bot/node_modules/discord.js/src/structures/MessageEmbed.js:266:42)
    at embedRestock (/root/sellix-discord-bot/commands/restock.js:14:4)
    at API.editProduct.then.res (/root/sellix-discord-bot/commands/restock.js:44:36)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:45561) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

spuqe avatar Feb 22 '22 15:02 spuqe