Loop
DIAdiscord.js - Imagine an app
•Created by Loop on 9/15/2023 in #djs-questions
Using @discordjs/rest to make requests using Bearer access token
Is it possible to use the rest functions to fetch data for users with their OAuth access_token?
Currently I've tried the following, the only option I got working was with a self made API call, I was wondering if I could utilize the REST class instead.
DISCORD_CLIENT_TOKEN
is the token for my bot/application
accessToken
is the bearer token for the user
6 replies