DrSkunk / discord-plays-pokemon

Discord bot that plays Gameboy games by posting screenshots of the game and listening to its message reactions
Other
36 stars 6 forks source link

Issue when i do the 'info' command #2

Open colbeagle opened 3 years ago

colbeagle commented 3 years ago

Hi, i got a issue when i do the 'info' command. Here the error.

/home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:432 if (!value) throw new RangeError('EMBED_FIELD_VALUE'); ^

RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values may not be empty. at Function.normalizeField (/home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:432:23) at /home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:452:14 at Array.map () at Function.normalizeFields (/home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:451:8) at MessageEmbed.addFields (/home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:266:42) at MessageEmbed.addField (/home/discord-plays-pokemon/node_modules/discord.js/src/structures/MessageEmbed.js:257:17) at Object.execute (/home/discord-plays-pokemon/dist/commands/Info.js:22:22) at DiscordClient. (/home/discord-plays-pokemon/dist/DiscordClient.js:118:33) at step (/home/discord-plays-pokemon/dist/DiscordClient.js:33:23) at Object.next (/home/discord-plays-pokemon/dist/DiscordClient.js:14:53) {

}

Can someone help me ? Thanks alot.

DrSkunk commented 2 years ago

Hiya @colbeagle , this is probably because the Discord.js library that's currently used needs to be updated. I currently don't have a plan for when to do this though, since it's a big chunk to do.