Check Member Role
GET/v1/members/:user_id/roles/:role_id/
Check whether a member holds one specific role.
Answers has_role for the role you asked about. The role does not have to exist in the
server: one that was deleted, or that belongs elsewhere, simply reports false.
A user who is not in the server answers 404.
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
X-RateLimit-Tier
Plan your limits were taken from.
X-RateLimit-Bucket
The limit the other headers describe, the one closest to running out.
X-RateLimit-Limit
Requests allowed in that window.
X-RateLimit-Remaining
Requests left in the current window.
X-RateLimit-Reset
Unix timestamp in seconds of when that window resets.
Retry-After
Seconds to wait before trying again.