Cannot read properties of undefined (reading 'reduce')

I have two apps and this error is happening on both when I try to run any interaction.
C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\BaseInteraction.js:106
this.entitlements = data.entitlements.reduce(
^

TypeError: Cannot read properties of undefined (reading 'reduce')
at new BaseInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\BaseInteraction.js:106:43)
at new CommandInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\CommandInteraction.js:16:5)
at new ChatInputCommandInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\ChatInputCommandInteraction.js:13:5)
at InteractionCreateAction.handle (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\actions\InteractionCreate.js:90:25)
at module.exports [as INTERACTION_CREATE] (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@discordjs\ws\dist\index.js:1190:51)
at WebSocketShard.emit (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)

Node.js v20.11.1
C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\BaseInteraction.js:106
this.entitlements = data.entitlements.reduce(
^

TypeError: Cannot read properties of undefined (reading 'reduce')
at new BaseInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\BaseInteraction.js:106:43)
at new CommandInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\CommandInteraction.js:16:5)
at new ChatInputCommandInteraction (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\structures\ChatInputCommandInteraction.js:13:5)
at InteractionCreateAction.handle (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\actions\InteractionCreate.js:90:25)
at module.exports [as INTERACTION_CREATE] (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@discordjs\ws\dist\index.js:1190:51)
at WebSocketShard.emit (C:\Users\the1a\Downloads\apps\dyLcore\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)

Node.js v20.11.1
3 Replies
d.js toolkit
d.js toolkit6mo 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 OP
treble/luna
treble/luna6mo ago
we are currently investigating this as it seems to be an issue on discords end
dyLn 🎄
dyLn 🎄OP6mo ago
ah
Want results from more Discord servers?
Add your server