You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
So I get this error when I try to do node commands.js , here's the full log:
C:\Users\"Username"\Desktop\Bot\commands.js:3
REST, REST
^
SyntaxError: Identifier 'REST' has already been declared
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
But when I remove the 2nd "REST" identifier I get this error:
DiscordAPIError[10002]: Unknown Application
at SequentialHandler.runRequest (C:\Users\"Username"\Desktop\Bot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:198:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\"Username"\Desktop\Bot\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.js:99:20) {
rawError: { message: 'Unknown Application', code: 10002 },
code: 10002,
status: 404,
method: 'put',
url: 'https://discord.com/api/v9/applications/CLIENTID GOES HERE, NOT POSTING IT/commands'
}
Please help, I tried finding a solution and can't get to fix it.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So I get this error when I try to do
node commands.js
, here's the full log:But when I remove the 2nd "REST" identifier I get this error:
Please help, I tried finding a solution and can't get to fix it.
The text was updated successfully, but these errors were encountered: