Get Member Roles
GET/v1/members/:user_id/roles/
List the roles a member currently holds.
Roles come back in Discord's own order, highest first, and include roles owned by integrations such as the booster role.
A user who is not in the server answers 404, which is how you tell an outsider apart from a member who simply has no roles.
Requires an API key with the discord.view_members permission.
Request
Responses
- 200
- 429
Successful Response
Out of requests. X-RateLimit-Bucket says which limit you hit and Retry-After how many seconds to wait. This request was not counted against you.
Response Headers
Plan your limits were taken from.
The limit the other headers describe, the one closest to running out.
Requests allowed in that window.
Requests left in the current window.
Unix timestamp in seconds of when that window resets.
Seconds to wait before trying again.