I am developing a moderation bot for discord, I am trying to create a paid plan and therefore I need users to log in with their discord account with oauth2 so that I can fetch user data and know which server has the pay plan, chin. So for now I just created an oauth2 url and set up a redirect for https://bouncerbot.goatcode.it/index.html
then, after the user has logged in, I have this url: https://bouncerbot.goatcode.it/index.html?code=nZauBH6wT0hxn8g8SsS1OwiDvN35nn&guild_id=872213710150713384&permissions=0 so now i want user data (profile picture, username etc) how can i get it?
from JS How to get discord account data via oauth2
No comments:
Post a Comment