Creates a new ServerMember instance.
The client instance.
The raw data for the server member from the API.
Optional
avatar?: Optional
nickname?: null | stringOptional
roles?: string[]Optional
timeout?: null | stringThe avatar of the member, or null
if none is set.
Readonly
clientThe client instance.
The unique identifier for the object.
The nickname of the member, or null
if none is set.
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.
Optional
clear: string[]Fields to clear in the object.
A clone of the updated object.
Bans the server member.
Optional
reason: 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.
Optional
obj: null | ServerMemberThe object to compare with.
true
if the objects are equal, otherwise false
.
Sets the nickname of the server member.
Optional
nickname: 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.