title: JS How to get discord account data via oauth2
body: <p>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 <a href="https://bouncerbot.goatcode.it/index.html" rel="nofollow noreferrer">https://bouncerbot.goatcode.it/index.html</a></p>
  <p>then, after the user has logged in, I have this url: <a href="https://bouncerbot.goatcode.it/index.html?code=nZauBH6wT0hxn8g8SsS1OwiDvN35nn&amp;guild_id=872213710150713384&amp;permissions=0" rel="nofollow noreferrer">https://bouncerbot.goatcode.it/index.html?code=nZauBH6wT0hxn8g8SsS1OwiDvN35nn&amp;guild_id=872213710150713384&amp;permissions=0</a> so now i want user data (profile picture, username etc) how can i get it?</p>