"The application is not responding"
Can someone tell me why my bot executes the command without any problem, but once this is done it responds with "The application is not responding", making it crash?
-----------------------------
https://sourceb.in/rFX9WJdejO
11 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 OPUnknown User•6mo ago
Message Not Public
Sign In & Join Server To View
here's the error from my console:
node:events:497
throw er; // Unhandled 'error' event
^
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:835:23)
at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1278:22)
at async ChatInputCommandInteraction.reply (/home/container/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:114:5)
at async Client.<anonymous> (/home/container/index.js:97:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:402:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Cancellati 3 messaggi.',
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1239642665335652443/aW50ZXJhY3Rpb246MTIzOTY0MjY2NTMzNTY1MjQ0MzpzRU90eHlTQXlPTGNxY0dVUmdSMm52Y1N0WkRwY2dhMTUzQXhXaXplUXdtbzc3dmRTdGE4TnRNSjZkVTdDbjVWcGp1MnRTUVJVNHUzRnhNbkVFMmF5cDU0cVJJOHR2TlBNNGNHQkFHdm15dzlRcWE0TDJHTzdmdkJ4UnhMYjQ1OQ/callback'
}
Node.js v20.13.1
.
you have 3 seconds to respond to interaction
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I still have the same problem (I updated what I did in the sourcebin).
Did I make the wrong .js to edit?
this is not how you use deferReply
you call it, do something, then followup:
You can also interaction.editReply rather than following up
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
well i dont use d.js now
so i agree