OAuth2 Question

Is it possible to take authorized User with the OAuth2 (guild.join), auto. joining a another server with a Command? And mabye if someone have time, can tell me how? :D
8 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
meze
meze6mo ago
My exact discord.js is discord.js@13.1.0 And my node version is v20.10.0
treble/luna
treble/luna6mo ago
first of all, update djs 13.1 is deprecated and broken
d.js docs
d.js docs6mo ago
method GuildMemberManager#add() Adds a user to the guild using OAuth2. Requires the CREATE_INSTANT_INVITE permission.
meze
meze6mo ago
What Version is the best now?
treble/luna
treble/luna6mo ago
13.17 is the latest
meze
meze6mo ago
npm i discord.js@13.17 Any other command, or only these? Ouh, Im sorry for respond ping you. Okay, If I add that to the OAuth2, then how to make the Command to use the OAuth2, that all Users with the authorizied Join the new Discord Link?
treble/luna
treble/luna6mo ago
How you get the access token is up to you, djs does not handle that After that you use above mentioned method to add the user to the guild