Hazelwize
Hazelwize
DIAdiscord.js - Imagine an app
Created by Hazelwize on 7/14/2023 in #djs-questions
Bot works on windows, but not on ubuntu.
I am following the tutorial for slash commands and have copied exactly what is in the documentation. When running the /user command, it works on Windows, but Ubuntu returns an error:
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:16:4) {
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/1129538533028270102/aW50ZXJhY3Rpb246MTEyOTUzODUzMzAyODI3MDEwMjpPaktyQWRjOW9Bd1lOclBHSHZCc0FBS2tlcUMydllRdTdGQ21LSFJKZUV1OVVicEVhbFNvSFlMWXpIM2VKc2hNMTBwT3Z6OXppNktrNE9NV0loZDF4UXBTZnVIRXJlQVlxcTQ4cE9FcHF6TWN5MU9jeXBsVERlTkV2cHhqTUZtSQ/callback'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:736:23)
at async REST.request (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async ChatInputCommandInteraction.reply (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/mnt/0EA6F184A6F16C99/100Devs/Practice Projects/role-bot/events/interaction-create.js:16:4) {
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/1129538533028270102/aW50ZXJhY3Rpb246MTEyOTUzODUzMzAyODI3MDEwMjpPaktyQWRjOW9Bd1lOclBHSHZCc0FBS2tlcUMydllRdTdGQ21LSFJKZUV1OVVicEVhbFNvSFlMWXpIM2VKc2hNMTBwT3Z6OXppNktrNE9NV0loZDF4UXBTZnVIRXJlQVlxcTQ4cE9FcHF6TWN5MU9jeXBsVERlTkV2cHhqTUZtSQ/callback'
}
30 replies