Error in discord.js v14
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/Users/macbookdrink/node_modules/@discordjs/rest/dist/index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/Users/macbookdrink/node_modules/@discordjs/rest/dist/index.js:786:23)
at async _REST.request (/Users/macbookdrink/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async ChatInputCommandInteraction.reply (/Users/macbookdrink/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Ocorreu um erro ao buscar informações do invocador.',
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: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1167555442663239761/aW50ZXJhY3Rpb246MTE2NzU1NTQ0MjY2MzIzOTc2MToxRjUxd3dxRnBZR2tCSGpabGtRWm5BVUpMQnN0bmpEODEySnRiOXZJRVVTY0EwWVZWUGt3Um1Dd01qb1dGOVU3cG1ZWkU1VXlsa3lMcGxTRmpYc285RmVDMVhEaVFDR3ZiYmVLWWo2aGR0MjBnSURBNWswSTlxNG9KR25HMzBVVQ/callback'
}
Node.js v18.17.1
macbookdrink@MacBook-Pro-de-Patrik Rito Gomes %
https://pastebin.com/mphtnzES my elo.js
https://pastebin.com/jDvAThkP also index.jsPastebin
const axios = require('axios');const { ApplicationCommandOptionType...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
const Discord = require("discord.js");const { Client, GatewayIntent...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
- 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 OPCommon 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🤡
i didnt get it.