TypeError: isJSONEncodable is not a function

Hi! I keep getting this error when i mention the bot:
TypeError: isJSONEncodable is not a function
at C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:200:9
at Array.map (<anonymous>)
at MessagePayload.resolveBody (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:199:36)
at TextChannel.send (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:169:32)
at Message.reply (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\Message.js:803:25)
at module.exports (C:\Users\Adamh\Documents\marlean\events\client\messageCreate.js:88:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Promise {
<rejected> TypeError: isJSONEncodable is not a function
at C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:200:9
at Array.map (<anonymous>)
at MessagePayload.resolveBody (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:199:36)
at TextChannel.send (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:169:32)
at Message.reply (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\Message.js:803:25)
at module.exports (C:\Users\Adamh\Documents\marlean\events\client\messageCreate.js:88:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}
TypeError: isJSONEncodable is not a function
at C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:200:9
at Array.map (<anonymous>)
at MessagePayload.resolveBody (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:199:36)
at TextChannel.send (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:169:32)
at Message.reply (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\Message.js:803:25)
at module.exports (C:\Users\Adamh\Documents\marlean\events\client\messageCreate.js:88:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Promise {
<rejected> TypeError: isJSONEncodable is not a function
at C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:200:9
at Array.map (<anonymous>)
at MessagePayload.resolveBody (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\MessagePayload.js:199:36)
at TextChannel.send (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:169:32)
at Message.reply (C:\Users\Adamh\Documents\marlean\node_modules\discord.js\src\structures\Message.js:803:25)
at module.exports (C:\Users\Adamh\Documents\marlean\events\client\messageCreate.js:88:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}
4 Replies
d.js toolkit
d.js toolkit•16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
adam
adamOP•16mo ago
- [email protected] - Everytime i mention the bot i get that error
Syjalo
Syjalo•16mo ago
Update npm i discord.js@latest
adam
adamOP•16mo ago
thanks, have a great day 🙂
Want results from more Discord servers?
Add your server