hajimukumao
hajimukumao
DIAdiscord.js - Imagine an app
Created by hajimukumao on 1/10/2024 in #djs-questions
Trouble with collecting message component interactions
After upgrading from an earlier discord.js version to the newest, slash commands that replied with a message with message components, that when clicked on replied with another message with message components, that when clicked on replied with a third message, began not working. (The first version that breaks them is v14.12.0, I've temporarily downgraded to v14.11.0 until I can find a solution) 1. Component interactions of responseOne are received by collectorOne, but interactions of responseTwo aren't received by collectorTwo (no errors) I was able to "fix" 1. by setting fetchReply to true when replying to the interaction(s) to return the message(Message) instead of the interaction(InteractionResponse). 2. However, trying to edit the message(responseOne.edit) would give me the following error:
DiscordAPIError[10008]: Unknown Message
at handleErrors (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async GuildMessageManager.edit (path_to_workspace/node_modules/discord.js/src/managers/MessageManager.js:177:15)
at async InteractionCollector.<anonymous> (path_to_workspace/commands/admin/test.js:46:25)
DiscordAPIError[10008]: Unknown Message
at handleErrors (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (path_to_workspace/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async GuildMessageManager.edit (path_to_workspace/node_modules/discord.js/src/managers/MessageManager.js:177:15)
at async InteractionCollector.<anonymous> (path_to_workspace/commands/admin/test.js:46:25)
any help with 1. or 2. would be appreciated code: https://pastebin.com/QjGyRQ4C Node.js: v21.2.0 discord.js: v14.14.1
4 replies