Daerendor 🥦
DIAdiscord.js - Imagine an app
•Created by Daerendor 🥦 on 11/5/2023 in #djs-questions
Use Discord.js v14 for an OAuth user
For a new project of mine, I need to use user's data directly, aka OAuth then user endpoints.
I saw that Discord.js modules (djs next?) provide basic methods and classes to handle auth, data queries etc. However, it does the same QOL features than v14 (or prior), e.g. caches etc. I believe it is to be expected since next is intended to have little abstraction.
Here comed my question. Can I use Discord.js v.14 (aka not modules) to handle the dirty job for me (provided that I have the user's oauth tokens)?
Tldr; can I use Discord.js v14 for a 'bearer' user instead of a bot?
3 replies