Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get member permissions through guild member API #1024

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ochen1
Copy link
Contributor

@ochen1 ochen1 commented Apr 9, 2023

https://discord.com/developers/docs/resources/guild#guild-member-object

Guild member object has an optional permissions field that is super useful for bot development.

@ochen1 ochen1 changed the title Add ability to get member permissions through guild member API Get member permissions through guild member API Apr 9, 2023
@MaddyUnderStars
Copy link
Member

this route is wrong currently, but not in that way. sending GET guilds/:id/members/:id doesn't actually return their permissions on discord.com. it's wrong because we don't send member roles, their user obj, and some other props. if you'd like to open a new PR to do that, I'd appreciate it. otherwise I can just do that later.

or are you suggesting that this route return their permissions anyway, as an api extension? I'm not sure how useful it'd be given current bot libs don't expect it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants