Permissions Based on Discord Roles

I want to allow and restrict things based on if someone has a discord role in my discord server. Does anyone know if this is possible?

You’ll have to integrate the discord api, but I don’t see why this wouldn’t be doable.

I’ve already got discord oauth setup, but none of them seem to be able to retrieve discord roles from a guild.

Well yes, authentication would be the first step in getting this to work. You’ll need to pull user info to check and then work with it in Bubble.

Do you know how I would do a custom API call for specific info in a guild? The discord oauth plugins seem to only be to find user info and what guilds they’re in.

I don’t have much experience with the discord api but I’m sure if you posted the api doc and what you’ve done so far I or someone might be able to help you out a bit further.