TypeError: isJSONEncodable is not a function

Joined
Jun 17, 2023
Messages
2
Reaction score
0
Shell:
TypeError: isJSONEncodable is not a function
at StringSelectMenuBuilder.normalizeEmoji (/home/runner/rustplusplus/node_modules/discord.js/src/structures/StringSelectMenuBuilder.js:31:9)
at /home/runner/rustplusplus/node_modules/discord.js/src/structures/StringSelectMenuBuilder.js:57:91
at Array.map (<anonymous>)
at StringSelectMenuBuilder.setOptions (/home/runner/rustplusplus/node_modules/discord.js/src/structures/StringSelectMenuBuilder.js:57:53)
at Object.getSelectMenu (/home/runner/rustplusplus/src/discordTools/discordSelectMenus.js:34:41)
at Object.getLanguageSelectMenu (/home/runner/rustplusplus/src/discordTools/discordSelectMenus.js:62:28)
at setupGeneralSettings (/home/runner/rustplusplus/src/discordTools/SetupSettingsMenu.js:73:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async module.exports (/home/runner/rustplusplus/src/discordTools/SetupSettingsMenu.js:43:9)
at async DiscordBot.setupGuild (/home/runner/rustplusplus/src/structures/DiscordBot.js:204:9)
at async /home/runner/rustplusplus/src/discordEvents/ready.js:69:13



Console:
ERROR: Interaction edit reply failed: ,TypeError: isJSONEncodable is not a function
 
Joined
Nov 13, 2020
Messages
302
Reaction score
38
Hard to get help when you don't show code, and harder when you don't ask a question.

I'm guessing that isJSONEncodable is not correct and you should use is JSONEncodable instead.
Or maybe you just didn't write a function for isJSONEncodable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top