jack3898 / discord-youtube-bot-2

A powerful Discord YouTube Bot.
0 stars 0 forks source link

TypeError: Cannot read properties of undefined (reading '_add') when using controls #22

Open melchoir55 opened 1 year ago

melchoir55 commented 1 year ago

Any attempt to use the controls gui causes the following exception

bot      | /home/node/node_modules/discord.js/src/structures/MessageComponentInteraction.js:27
bot      |     this.message = this.channel?.messages._add(data.message) ?? data.message;
bot      |                                          ^
bot      | TypeError: Cannot read properties of undefined (reading '_add')
bot      |     at new MessageComponentInteraction (/home/node/node_modules/discord.js/src/structures/MessageComponentInteraction.js:27:42)
bot      |     at new ButtonInteraction (/home/node/node_modules/discord.js/src/structures/ButtonInteraction.js:9:1)
bot      |     at InteractionCreateAction.handle (/home/node/node_modules/discord.js/src/client/actions/InteractionCreate.js:67:25)
bot      |     at Object.module.exports [as INTERACTION_CREATE] (/home/node/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
bot      |     at WebSocketManager.handlePacket (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:351:31)
bot      |     at WebSocketShard.onPacket (/home/node/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
bot      |     at WebSocketShard.onMessage (/home/node/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
bot      |     at WebSocket.onMessage (/home/node/node_modules/ws/lib/event-target.js:199:18)
bot      |     at WebSocket.emit (node:events:513:28)
bot      |     at WebSocket.emit (node:domain:489:12)