v2

latestOpenAPI 3.0.0AGPLv32026-07-26125148364.7 KB
Server Members

Edit Member

Edit a member by their id.

patch/servers/{server_id}/members/{member_id}

Path parameters

server_idstring required
member_idstring required

Headers

X-Audit-Log-Reasonstring

Reason for action which is stored in the audit log.

Request body

nicknamestring nullable

Member nickname

pronounsstring nullable

Member pronouns

avatarstring nullable

Attachment Id to set for avatar

rolesstring[] nullable

Array of role ids

timeoutstring date-time

ISO8601 formatted timestamp

can_publishboolean nullable

server-wide voice muted

can_receiveboolean nullable

server-wide voice deafened

voice_channelstring nullable

voice channel to move to if already in a voice channel

removeFieldsMember[]

Fields to remove from channel object

Example request

{
  "timeout": "1970-01-01T00:00:00Z"
}

Response

joined_atstring date-time required

ISO8601 formatted timestamp

nicknamestring nullable

Member's nickname

pronounsstring nullable

Member's pronouns

rolesstring[]

Member's roles

timeoutstring date-time

ISO8601 formatted timestamp

can_publishboolean

Whether the member is server-wide voice muted

can_receiveboolean

Whether the member is server-wide voice deafened

Example response

{
  "joined_at": "1970-01-01T00:00:00Z",
  "timeout": "1970-01-01T00:00:00Z"
}