Button that sends a form and a select menu that are updated does not work

Hello, I have a problem, I am creating a command that when pressing a button sends an embed and a menuselect and when choosing an option it updates the embed and the select menu to choose a few more times, the thing is that it gives me an "Interaction has already been acknowledged." and I do not know what to do.
5 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
MrRober
MrRoberOP2y ago
{
"name": "discord-bot",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@paypal/checkout-server-sdk": "^1.0.3",
"discord.js": "^14.11.0",
"dotenv": "^16.0.3",
"express": "^4.18.2"
}
}
{
"name": "discord-bot",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@paypal/checkout-server-sdk": "^1.0.3",
"discord.js": "^14.11.0",
"dotenv": "^16.0.3",
"express": "^4.18.2"
}
}
DiscordAPIError[40060]: Interaction has already been acknowledged.
at handleErrors (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async StringSelectMenuInteraction.reply (C:\Users\Rober\Desktop\BotLocal\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Error: DiscordAPIError[10062]: Unknown interaction',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1124059012292423711/aW50ZXJhY3Rpb246MTEyNDA1OTAxMjI5MjQyMzcxMTo2TnkzbjVhNHBsQldKend4R2Fvem9YN0ZIOHFaMExKbEhjOTdRa1h0OGhRVTlVb091STFkR3ZDbWp3TzBBbFFOSDZWQWFyOUl1VEpBVG1lVVFCRkg0RWI4WDhWV0RYU0RGdlBvOHFPYzFtN3EzZ3k0QWhuNU1xM3hQWUxCV0JaVg/callback'
}
DiscordAPIError[40060]: Interaction has already been acknowledged.
at handleErrors (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\Rober\Desktop\BotLocal\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async StringSelectMenuInteraction.reply (C:\Users\Rober\Desktop\BotLocal\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Error: DiscordAPIError[10062]: Unknown interaction',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1124059012292423711/aW50ZXJhY3Rpb246MTEyNDA1OTAxMjI5MjQyMzcxMTo2TnkzbjVhNHBsQldKend4R2Fvem9YN0ZIOHFaMExKbEhjOTdRa1h0OGhRVTlVb091STFkR3ZDbWp3TzBBbFFOSDZWQWFyOUl1VEpBVG1lVVFCRkg0RWI4WDhWV0RYU0RGdlBvOHFPYzFtN3EzZ3k0QWhuNU1xM3hQWUxCV0JaVg/callback'
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MrRober
MrRoberOP2y ago
can you give me an example please
d.js docs
d.js docs2y ago
guide Creating Your Bot: Event handling read more
Want results from more Discord servers?
Add your server