Allow the OAuth API be be able to read a Guild member's roles.
This is only currently possible through [1] which is locked behind using a Bot token for a bot that is a member of the respective server.
User role information is not secret, and sometimes community members want to make a project that authenticates users behind a particular role of a guild they are on, and so it would it would be great if this endpoint as well as [2]
[1]: https://discordapp.com/developers/docs/resources/guild#get-guild-member
[2]: https://discordapp.com/developers/docs/resources/guild#get-guild-roles
This is *not* a suggestion to be able to update server settings from a Web application, only to read.
-
Hi, would like to know if this would be considered by discord team? Here at Concourse https://concourse-ci.org team we are trying to develop a Discord connector on Dex https://github.com/dexidp/dex
We are also trying to authenticate Concourse users based on their roles of a guild through Dex. Please extend the guilds scope or add a new scope for getting user roles info within a guild.
Like it mentioned above, it just need the read permission of user guild roles. Thx!
2 -
Yeah, I encountered the same problem...
0 -
Hi there, I also would be super keen for read only access of a guild members roles via OAuth. Any update on whether this could be considered?
1 -
It would be great if `/users/@me/guilds` at least returned the roles for the guilds that user is a member of.
3 -
yeah tacosfeedthebear's suggestion would work as well. I'm trying to do something along the lines as OP's post but at the very least being able to view said users roles in the guild would be extremely helpful.
0 -
Hi, I just started a side-project related to our crew server for which I thought I'd put OAuth API to good use, but not being able to read roles of someone is quite a bummer. I saw https://discord.com/developers/docs/resources/guild#add-guild-member which manipulates roles but that's not the usecase here so I'm afraid it's more a policy to not deal that much with it.
OP's request is two years old, but I still hope to see it happen. Looks like I'll need to handle a bot from the webapp :(
0 -
I would really like to be able to access the current user's roles as well.
At the moment I'm able to get a list of the guilds they are a member of. For one of those guilds, I just need to check if they have a role with a certain ID or name, read-only access.
Similar reason to everyone else - I want to use Discord as the source of truth. If they have a role, I want to then grant them access to do other things outside Discord based on that knowledge.
0 -
Would also appreciate the support for this. Trying to make a web app that has role's based on a user's roles in a discord server.
0
Yorum yazmak için lütfen oturum açın.
Yorumlar
8 yorum