Cannot read properties of undefined (reading 'reduce')

my bot suddenly start giving this error pls help
10 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Zypher ✪
Zypher ✪OP10mo ago
[email protected] v18.20.2
<rejected> TypeError: Cannot read properties of undefined (reading 'reduce')
1|jukebox | at new BaseInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/BaseInteraction.js:106:43)
1|jukebox | at new CommandInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/CommandInteraction.js:16:5)
1|jukebox | at new ChatInputCommandInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/ChatInputCommandInteraction.js:13:5)
1|jukebox | at InteractionCreateAction.handle (/root/backup-petro/jukebox/node_modules/discord.js/src/client/actions/InteractionCreate.js:90:25)
1|jukebox | at module.exports [as INTERACTION_CREATE] (/root/backup-petro/jukebox/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:
<rejected> TypeError: Cannot read properties of undefined (reading 'reduce')
1|jukebox | at new BaseInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/BaseInteraction.js:106:43)
1|jukebox | at new CommandInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/CommandInteraction.js:16:5)
1|jukebox | at new ChatInputCommandInteraction (/root/backup-petro/jukebox/node_modules/discord.js/src/structures/ChatInputCommandInteraction.js:13:5)
1|jukebox | at InteractionCreateAction.handle (/root/backup-petro/jukebox/node_modules/discord.js/src/client/actions/InteractionCreate.js:90:25)
1|jukebox | at module.exports [as INTERACTION_CREATE] (/root/backup-petro/jukebox/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:
d.js toolkit
d.js toolkit10mo ago
Revert to discord.js v14.14.1 (upstream documentation suggests the data is always present, which it is not)
Papalo007
Papalo00710mo ago
other people are having this too. apparently downgrading to 14.14.1 works
Zypher ✪
Zypher ✪OP10mo ago
lemme try thanks
Papalo007
Papalo00710mo ago
yw
Zypher ✪
Zypher ✪OP10mo ago
still same error working fine on my pc vs code but not on my dedicated server
Papalo007
Papalo00710mo ago
really?
Zypher ✪
Zypher ✪OP10mo ago
not jk
TÆMBØ
TÆMBØ10mo ago
What's the output of npm ls discord.js on your server?

Did you find this page helpful?