#Receives "Unknown interaction" after edited ephemeral messages

3 messages · Page 1 of 1 (latest)

earnest sageBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
main helm
#

PS C:\ypaBot> node .\index.js
[Discord.js] logging in...
[mongoose] Connecting to MongoDB...
[mongoose] Connected to MongoDB.
Stalin is here to ура!
C:\ypaBot\node_modules@discordjs\rest\dist\index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\ypaBot\node_modules@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\ypaBot\node_modules@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\ypaBot\node_modules@discordjs\rest\dist\index.js:1387:22)
at async ButtonInteraction.update (C:\ypaBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:233:5) {
requestBody: {
files: [],
json: {
type: 7,
data: {
content: undefined,
tts: false,
nonce: undefined,
embeds: [
{
color: 16776960,
description: 'You can now delete this message.'
}
],
components: [],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1138503929269866567/aW50ZXJhY3Rpb246MTEzODUwMzkyOTI2OTg2NjU2NzpjenNidHpNMWRVaGNXcGtOTTZjRW50T1lSeHUxQjJzdWtGcXVRcjlmdnlwVEp1cEhENDZSUzBkTDRKeTQ2Qk5XNldaRFpJRzBGMDhESWQzNHNGUFJua2JiQWN4OEhYZEdVV2JtZ283UXowclhpQUh6MmJ6dmVrMjBiRVBlVEc5Tw/callback'
}

Node.js v18.15.0

rustic stoneBOT
#

Common causes of DiscordAPIError[10062]: Unknown interaction:

  • Initial response took more than 3 seconds ➞ defer the response *.
  • Wrong interaction object inside a collector.
  • Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
    * Note: you cannot defer modal or autocomplete value responses