I have discord server, and a website. On the website i would like to read a discord user's roles in a specific guild (My discord server) and display some content depending on their discord roles on my server. An example is checking whether a user has been whitelisted (Given a whitelist role).
I have tried to read the information via the normal API, but that is not possible. Instead i have tried to use a bot, but i do not see how i am able to access user information via the bot API. Can someone point me in the right direction, or help me? Thanks.