Creates a new ServerMember instance.
The client instance.
The raw data for the server member from the API.
Optionalavatar?: Optionalnickname?: null | stringOptionalroles?: string[]Optionaltimeout?: null | stringThe avatar of the member, or null if none is set.
ReadonlyclientThe client instance.
The unique identifier for the object.
The nickname of the member, or null if none is set.
roles assigned to the member
The ID of the server this member belongs to.
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optionalclear: string[]Fields to clear in the object.
A clone of the updated object.
adds a role to the server member.
The ID of the role to add to the member.
Bans the server member.
Optionalreason: stringThe reason for the ban.
A promise that resolves when the member is banned.
Compares this object with another to determine if they are equal.
Optionalobj: null | ServerMemberThe object to compare with.
true if the objects are equal, otherwise false.
Removes a role from the server member.
The ID of the role to remove from the member.
A promise that resolves with the updated server member instance.
Sets the nickname of the server member.
Optionalnickname: stringThe new nickname to set, or undefined to clear the nickname.
A promise that resolves with the updated server member instance.
Converts the server member to a string representation.
A string representation of the server member in the format <@userId>.
Represents a member of a server.