Answer the question
In order to leave comments, you need to log in
Error on the hosting, flooded the discord bot!?
Help, I uploaded the bot's discord to Glith hosting.
I did everything according to the tutorial. Created files and created index with code.
On the computer it's normal, on the host it's:
/rbd/pnpm-volume/5841684c-39d3-4696-b05c-d62fcbb9a7dc/node_modules/.registry.npmjs.org/discord.js/12.4.1/node_modules/discord.js/src/structures/MessageEmbed.js:450
_ flat(2)
^
TypeError: fields.flat is not a function
at Function.normalizeFields(/rbd/pnpm-volume/5841684c-39d3-4696-b05c-d62fcbb9a7dc/node_modules/.registry.npmjs.org/discord.js/12.4 .1/node_modules/discord.js/src/structures/MessageEmbed.js:450:8)
at MessageEmbed.addFields (/rbd/pnpm-volume/5841684c-39d3-4696-b05c-d62fcbb9a7dc/node_modules/.registry.npmjs. org/discord.js/12.4.1/node_modules/discord.js/src/structures/MessageEmbed.js:266:42)
at Object. (/app/index.js:7:3)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/ cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754: 12)
at startup (internal/bootstrap/node.js:283:19)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question