13 Replies
d.js toolkit
d.js toolkit5mo 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
TÆMBØ
TÆMBØ5mo ago
You already deferred your select menu interaction at line 28, so line 88 needs to be followUp() instead if your intention is to send a new message
Mussaplays
MussaplaysOP5mo ago
Alr
TÆMBØ
TÆMBØ5mo ago
Already what?
Mussaplays
MussaplaysOP5mo ago
I have 1 more question. What is vps and how can we use it.
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Mussaplays
MussaplaysOP5mo ago
Thx. I will mark it solved when i will try the code rq. Error replying to interaction: DiscordAPIError[40060]: Interaction has already been acknowledged. at handleErrors (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:730:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:835:23) at async _REST.request (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:1278:22) at async StringSelectMenuInteraction.deferUpdate (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:203:5) at async Object.execute (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\src\events\shopreply.js:10:9) { requestBody: { files: undefined, json: { type: 6 } }, rawError: { message: 'Interaction has already been acknowledged.', code: 40060 }, code: 40060, status: 400, method: 'POST', url: 'https://discord.com/api/v10/interactions/1256768129543966751/aW50ZXJhY3Rpb246MTI1Njc2ODEyOTU0Mzk2Njc1MTpKY1dxcEhZR1BOYkRjbnJxQ3RCZWZBaUNMWXNkYkdPcjBKT05Qd0kwZENLMkE2aVA2dk1HMkRtV2Nwd21NQUppRGZaSkxmRXZ5UE9QWjVTUkV0Wm16OEdyaEU5UWZxTmJNVjhiVlphYm5OclBucTIzcWJaT0ZZMnl6cmw3T1Vtdw/callback' } Error replying to interaction: DiscordAPIError[40060]: Interaction has already been acknowledged. at handleErrors (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:730:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:835:23) at async _REST.request (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules@discordjs\rest\dist\index.js:1278:22) at async StringSelectMenuInteraction.deferUpdate (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:203:5) at async Object.execute (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\src\events\shopreply.js:10:9) { requestBody: { files: undefined, json: { type: 6 } }, rawError: { message: 'Interaction has already been acknowledged.', code: 40060 }, code: 40060, status: 400, method: 'POST', url: 'https://discord.com/api/v10/interactions/1256768152465965116/aW50ZXJhY3Rpb246MTI1Njc2ODE1MjQ2NTk2NTExNjphZEJMS0NZeUxnZHlVd0M3NUNuVGRKT0loU3VSSWpsV2QzOVprSGlHblA2SlZLVUxtbXlld0JEb1pXN3FSVE9vdjBvWGtMaUNtT09mSVU4YnMyZ2RvWXZ1WmhTWnZVeVJRSlk2R1ZEeTM2TUxIMkVlRzZoZThKeVQ2ZWQyZzRIaQ/callback' } It show reply but in log it show this error
TÆMBØ
TÆMBØ5mo ago
Can you share the updated code?
TÆMBØ
TÆMBØ5mo ago
Looks like you have something in shopreply.js that's also trying to defer your select menu interactions
Mussaplays
MussaplaysOP5mo ago
I will fix it but can you fix this error for now. Error sending follow-up: Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. at ButtonInteraction.reply (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:104:46)
at Object.execute (D:\scott bot\node_modules\pm2\lib\API\ExtraMgmt\src\events\idk.js:265:31) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'InteractionAlreadyReplied' } code or that is bc of shop.js?
TÆMBØ
TÆMBØ5mo ago
I can't answer that becuase I don't know if that other file is handling ButtonInteractions, which is what this error is residing from
Mussaplays
MussaplaysOP5mo ago
Ah.. Alr nvm i fix.
Want results from more Discord servers?
Add your server