#discord.js Guide
1 messages · Page 1 of 1 (latest)
I am logged in and want to start getting info on the user from the API (pure fetches), want to use this to a bootstrap my bot to their discord
When you say I am logged in how exactly did you login?
Discord.js is a bot library. OAuth2 for user accounts is not part of that
Makes sense, I just saw some oauth2 stuff in the library so thought it handled it.
https://old.discordjs.dev/#/docs/discord.js/main/class/GuildManager?scrollTo=fetch
https://old.discordjs.dev/#/docs/discord.js/main/class/OAuth2Guild
Looks like this just fetches oauth2 apps the user has?
I am logging in using https://next-auth.js.org/providers/discord (which is super nice)
Appreciate the help @spiral temple @chilly torrent, gonna use the actual bot stuff instead now
Documentation
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.