master_30
DIAdiscord.js - Imagine an app
•Created by master_30 on 9/16/2023 in #djs-questions
how to sync the global command manually by myself
Yes that's the problem, thx a lot. But after I tried, I found this error while using slash command I host it locally on ubuntu (wsl). This should not be an internet problem. And I don't think I need to defer a ping command since it is fast
ping
, it is a really simple and fast command, but why it takes more than 3 second and return the error in the console DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/commands/ping.js:8:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/events/interaction_create.js:18:7) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1153052975716110458/aW50ZXJhY3Rpb246MTE1MzA1Mjk3NTcxNjExMDQ1ODpGTERuOEFNU05qVE1UejlVd0RZZ0ZnbVFpMTJnYkhIRXNkejBycEE5aWJxOGRLNTZmWHplOXRuUzJjM1dnV0J2eGdoeFZNcXcxdnZNSmdFejU4NldhczNRZVZmWGlub2RBeU92Uk81bFFFa3NxRTJacmJpbnExOFBiTmU5VjlKZA/callback'
}
Failed to reply to the interaction: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/events/interaction_create.js:25:11) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1153052975716110458/aW50ZXJhY3Rpb246MTE1MzA1Mjk3NTcxNjExMDQ1ODpGTERuOEFNU05qVE1UejlVd0RZZ0ZnbVFpMTJnYkhIRXNkejBycEE5aWJxOGRLNTZmWHplOXRuUzJjM1dnV0J2eGdoeFZNcXcxdnZNSmdFejU4NldhczNRZVZmWGlub2RBeU92Uk81bFFFa3NxRTJacmJpbnExOFBiTmU5VjlKZA/callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/commands/ping.js:8:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/events/interaction_create.js:18:7) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1153052975716110458/aW50ZXJhY3Rpb246MTE1MzA1Mjk3NTcxNjExMDQ1ODpGTERuOEFNU05qVE1UejlVd0RZZ0ZnbVFpMTJnYkhIRXNkejBycEE5aWJxOGRLNTZmWHplOXRuUzJjM1dnV0J2eGdoeFZNcXcxdnZNSmdFejU4NldhczNRZVZmWGlub2RBeU92Uk81bFFFa3NxRTJacmJpbnExOFBiTmU5VjlKZA/callback'
}
Failed to reply to the interaction: DiscordAPIError[10062]: Unknown interaction
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async BurstHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/home/timg233/bot_deployment/bamboo/src/events/interaction_create.js:25:11) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1153052975716110458/aW50ZXJhY3Rpb246MTE1MzA1Mjk3NTcxNjExMDQ1ODpGTERuOEFNU05qVE1UejlVd0RZZ0ZnbVFpMTJnYkhIRXNkejBycEE5aWJxOGRLNTZmWHplOXRuUzJjM1dnV0J2eGdoeFZNcXcxdnZNSmdFejU4NldhczNRZVZmWGlub2RBeU92Uk81bFFFa3NxRTJacmJpbnExOFBiTmU5VjlKZA/callback'
}
10 replies
DIAdiscord.js - Imagine an app
•Created by master_30 on 9/16/2023 in #djs-questions
how to sync the global command manually by myself
DiscordAPIError[20012]: You are not authorized to perform this action on this application
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1021:23)
at async SequentialHandler.queueRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:862:14)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async /home/timg233/bot_deployment/bamboo/src/util/deploy_global.js:39:18 {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object]
]
},
rawError: {
message: 'You are not authorized to perform this action on this application',
code: 20012
},
code: 20012,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1110689306223312948/commands'
}
DiscordAPIError[20012]: You are not authorized to perform this action on this application
at handleErrors (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:640:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SequentialHandler.runRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1021:23)
at async SequentialHandler.queueRequest (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:862:14)
at async REST.request (/home/timg233/bot_deployment/bamboo/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async /home/timg233/bot_deployment/bamboo/src/util/deploy_global.js:39:18 {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object]
]
},
rawError: {
message: 'You are not authorized to perform this action on this application',
code: 20012
},
code: 20012,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1110689306223312948/commands'
}
10 replies
DIAdiscord.js - Imagine an app
•Created by master_30 on 9/16/2023 in #djs-questions
how to sync the global command manually by myself
but when I did deployment code first, it shows:
DiscordAPIError[20012]: You are not authorized to perform this action on this application
10 replies