server icon indicating copy to clipboard operation
server copied to clipboard

Get member permissions through guild member API

Open ochen1 opened this issue 2 years ago • 1 comments

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 avatar Apr 09 '23 04:04 ochen1

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

MaddyUnderStars avatar Apr 11 '23 03:04 MaddyUnderStars