This repository was archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Error while running commands.js #24
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels