Skip to content

Navigation Menu

Sign in
Sign up

Get member permissions through guild member API - #1024

Open
ochen1 wants to merge 1 commit into
spacebarchat:master from
ochen1:patch-1
Open

Get member permissions through guild member API #1024
ochen1 wants to merge 1 commit into
spacebarchat:master from
ochen1:patch-1

Conversation

@ochen1

@ochen1 ochen1 commented Apr 9, 2023

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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

Copy link
Copy Markdown
Member
image image image As far as I can see, this is incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /