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
- 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!My exact discord.js is [email protected]
And my node version is v20.10.0
first of all, update djs
13.1 is deprecated and broken
GuildMemberManager#add()
Adds a user to the guild using OAuth2. Requires the
CREATE_INSTANT_INVITE
permission.What Version is the best now?
13.17 is the latest
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?
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