#discord.js Guide

1 messages · Page 1 of 1 (latest)

desert grotto
#

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

chilly torrent
#

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

desert grotto
#

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