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 toolkit12mo 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
mezeOP12mo ago
My exact discord.js is [email protected] And my node version is v20.10.0
treble/luna
treble/luna12mo ago
first of all, update djs 13.1 is deprecated and broken
d.js docs
d.js docs12mo ago
method GuildMemberManager#add() Adds a user to the guild using OAuth2. Requires the CREATE_INSTANT_INVITE permission.
meze
mezeOP12mo ago
What Version is the best now?
treble/luna
treble/luna12mo ago
13.17 is the latest
meze
mezeOP12mo ago
npm i [email protected] 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/luna12mo 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
Want results from more Discord servers?
Add your server