You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'toJSON')
at D:\db\node_modules@discordjs\builders\dist\index.js:1285:64
at Array.map ()
at ActionRowBuilder.toJSON (D:\db\node_modules@discordjs\builders\dist\index.js:1285:35)
at D:\db\node_modules@discordjs\builders\dist\index.js:1374:64
at Array.map ()
at ModalBuilder.toJSON (D:\db\node_modules@discordjs\builders\dist\index.js:1374:35)
at ButtonInteraction.showModal (D:\db\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:256:46)
at Client. (D:\db\index.js:57:17)
at Client.emit (node:events:549:35)
at InteractionCreateAction.handle (D:\db\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
If you're unsure about something, you should ask in the Discord server or create a new discussion as this issue tracker is only for bug reports and enhancement suggestions.
Which package is this bug report for?
discord.js
Issue description
D:\db\node_modules@discordjs\builders\dist\index.js:1285
components: this.components.map((component) => component.toJSON())
^
TypeError: Cannot read properties of undefined (reading 'toJSON')
at D:\db\node_modules@discordjs\builders\dist\index.js:1285:64
at Array.map ()
at ActionRowBuilder.toJSON (D:\db\node_modules@discordjs\builders\dist\index.js:1285:35)
at D:\db\node_modules@discordjs\builders\dist\index.js:1374:64
at Array.map ()
at ModalBuilder.toJSON (D:\db\node_modules@discordjs\builders\dist\index.js:1374:35)
at ButtonInteraction.showModal (D:\db\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:256:46)
at Client. (D:\db\index.js:57:17)
at Client.emit (node:events:549:35)
at InteractionCreateAction.handle (D:\db\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
Code sample
Versions
discord.js 14.11.0
node v18.4.0
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Message
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: