Team Status command

The command will now always return this error:
8 Replies
d.js toolkit
d.js toolkit•3mo 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
Jonas
Jonas•3mo ago
0|Period-Bot | <rejected> DiscordAPIError[10062]: Unknown interaction
0|Period-Bot | at handleErrors (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:722:13)
0|Period-Bot | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Period-Bot | at async BurstHandler.runRequest (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:826:23)
0|Period-Bot | at async _REST.request (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:1266:22)
0|Period-Bot | at async ChatInputCommandInteraction.deferReply (/root/PeriodBot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5)
0|Period-Bot | at async Object.run (/root/PeriodBot/src/commands/slash/Team/setModeratorStatus.js:51:9) {
0|Period-Bot | requestBody: { files: undefined, json: [Object] },
0|Period-Bot | rawError: { message: 'Unknown interaction', code: 10062 },
0|Period-Bot | code: 10062,
0|Period-Bot | status: 404,
0|Period-Bot | method: 'POST',
0|Period-Bot | url: 'https://discord.com/api/v10/interactions/1265006309095379035/aW50ZXJhY3Rpb246MTI2NTAwNjMwOTA5NTM3OTAzNTpVQURSUjl4NzRrT2d4eVk4eFdtVkxyblBHdkFnV0lQVmxIa3k0aUllUXFOcmxGOWxrVktmTmV0d2YyTmV1bFJGazhFeVFlM05ia29NQjQyVEFvSEtSZmpReHE2WlBFNFJtbnFjSnlyV0VBZ3ZZTURZZEZwRlY3bGpNWjlXcU4wWQ/callback'
0|Period-Bot | }
0|Period-Bot | }
0|Period-Bot | <rejected> DiscordAPIError[10062]: Unknown interaction
0|Period-Bot | at handleErrors (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:722:13)
0|Period-Bot | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Period-Bot | at async BurstHandler.runRequest (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:826:23)
0|Period-Bot | at async _REST.request (/root/PeriodBot/node_modules/@discordjs/rest/dist/index.js:1266:22)
0|Period-Bot | at async ChatInputCommandInteraction.deferReply (/root/PeriodBot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5)
0|Period-Bot | at async Object.run (/root/PeriodBot/src/commands/slash/Team/setModeratorStatus.js:51:9) {
0|Period-Bot | requestBody: { files: undefined, json: [Object] },
0|Period-Bot | rawError: { message: 'Unknown interaction', code: 10062 },
0|Period-Bot | code: 10062,
0|Period-Bot | status: 404,
0|Period-Bot | method: 'POST',
0|Period-Bot | url: 'https://discord.com/api/v10/interactions/1265006309095379035/aW50ZXJhY3Rpb246MTI2NTAwNjMwOTA5NTM3OTAzNTpVQURSUjl4NzRrT2d4eVk4eFdtVkxyblBHdkFnV0lQVmxIa3k0aUllUXFOcmxGOWxrVktmTmV0d2YyTmV1bFJGazhFeVFlM05ia29NQjQyVEFvSEtSZmpReHE2WlBFNFJtbnFjSnlyV0VBZ3ZZTURZZEZwRlY3bGpNWjlXcU4wWQ/callback'
0|Period-Bot | }
0|Period-Bot | }
And then it says error: Embed too long 1024 or something like that. some ideas or solutions ? oki one sec
d.js docs
d.js docs•3mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
Jonas
Jonas•3mo ago
SourceBin
Error on Run
Instantly share your code with the world.
Jonas
Jonas•3mo ago
Line 51 is empty ah omg wait Now again i updatet i catcht the wrong file sowy line 51
await interaction.deferReply();
await interaction.deferReply();
Jonas
Jonas•3mo ago
SourceBin
setModeratorStatus.js
Instantly share your code with the world.
Jonas
Jonas•3mo ago
fixt it ig. Sorry to bother you
Want results from more Discord servers?
Add your server