body: { error: 'invalid_client' }
const e = new Error(r.status);
^
Error: 401
at D:\RPC\node_modules\discord-rpc\src\client.js:64:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RPCClient.authorize (D:\RPC\node_modules\discord-rpc\src\client.js:215:22)
at async RPCClient.login (D:\RPC\node_modules\discord-rpc\src\client.js:143:21) {
body: { error: 'invalid_client' }
}
10 Replies
⢠What's your exact discord.js
npm list discord.js and node node -v version?
⢠Post the full error stack trace, not just the top part!
⢠Show your code!
⢠Explain what exactly your issue is.
⢠Not a discord.js issue? Check out #useful-servers.not djs related, #other-js-ts
for what is this tag?
didnt know there was a tag nor this was made by the same devs
anyhow
you provided an invalid id
and from the looks of your code you didnt provided anything at all
I have a Application ID there
Can you try just doing
cilent.login({ clientId: "id here"}) without the other options?yes
Thanks, it works
but how can I make a timer until a date?
I would assume that you'd use the
endTimestamp option instead of using startTimestampmakes sense
thanks