jimiwtf
jimiwtf
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 9/9/2024 in #djs-questions
how do i send a private message via @discordjs/rest
oh nvm i got it
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 9/9/2024 in #djs-questions
how do i send a private message via @discordjs/rest
i want to send a direct message
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 9/9/2024 in #djs-questions
how do i send a private message via @discordjs/rest
so i just gotta put user's id instead of channel's?
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
thanks a lot
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
ohh nvm it works now
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
No description
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
just updated it to 2.3.0 and it still uses bot instead of bearer
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
so i thought its gonna install @latest
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
i installed it today? i didnt add any version parameter i just ran npm i @discordjs/rest
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
0.4.1
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
even tho i set it to bearer
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
yeah now i know what's wrong, the authorization header begins with the bot prefix instead of bearer
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
do u know what i could do to fix this
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
and it logs a valid token
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
No description
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
theres no reason for it to throw 401
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
No description
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
Yes
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 7/27/2024 in #djs-questions
DiscordAPIError[0]: 401: Unauthorized even though im authorized and the access token is brand new?
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, res.status, method, url, requestData);
^

DiscordAPIError[0]: 401: Unauthorized
at SequentialHandler.runRequest (C:\Users\julus\OneDrive\Desktop\levelio\node_modules\@discordjs\rest\dist\index.js:708:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\julus\OneDrive\Desktop\levelio\node_modules\@discordjs\rest\dist\index.js:511:14)
at async C:\Users\julus\OneDrive\Desktop\levelio\index.js:58:18 {
rawError: { message: '401: Unauthorized', code: 0 },
code: 0,
status: 401,
method: 'get',
url: 'https://discord.com/api/v10/users/@me',
requestBody: { files: undefined, json: undefined }
}

Node.js v21.6.0
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, res.status, method, url, requestData);
^

DiscordAPIError[0]: 401: Unauthorized
at SequentialHandler.runRequest (C:\Users\julus\OneDrive\Desktop\levelio\node_modules\@discordjs\rest\dist\index.js:708:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\julus\OneDrive\Desktop\levelio\node_modules\@discordjs\rest\dist\index.js:511:14)
at async C:\Users\julus\OneDrive\Desktop\levelio\index.js:58:18 {
rawError: { message: '401: Unauthorized', code: 0 },
code: 0,
status: 401,
method: 'get',
url: 'https://discord.com/api/v10/users/@me',
requestBody: { files: undefined, json: undefined }
}

Node.js v21.6.0
18 replies
DIAdiscord.js - Imagine a boo! 👻
Created by jimiwtf on 4/26/2024 in #djs-voice
Bot joins the vc but audio doesn't play
nothing changed
8 replies