Construct Server Member
Collection
Id
Server Id
User Id
Private
Readonly
#collectionReadonly
idServer Id
User Id
Whether this object exists
URL to the member's animated avatar
URL to the member's avatar
Display name
Member's currently hoisted role.
When this user joined the server
Nickname
Ordered list of roles for this member, from lowest to highest priority.
Member's ranking Smaller values are ranked as higher priority
Member's current role colour.
List of role IDs
Time at which timeout expires
Edit a member
Changes
Optional
avatar?: null | stringAttachment Id to set for avatar
Optional
nickname?: null | stringMember nickname
Optional
remove?: null | ("Nickname" | "Avatar" | "Roles" | "Timeout")[]Fields to remove from channel object
Optional
roles?: null | string[]Array of role ids
Optional
timeout?: null | stringTimestamp this member is timed out until
Check whether a member has a certain permission against a certain object
Target object to check permissions against
Rest
...permission: ("Video" | "Masquerade" | "ManageChannel" | "ManageServer" | "ManagePermissions" | "ManageRole" | "ManageCustomisation" | "KickMembers" | "BanMembers" | "TimeoutMembers" | "AssignRoles" | "ChangeNickname" | "ManageNicknames" | "ChangeAvatar" | "RemoveAvatars" | "ViewChannel" | "ReadMessageHistory" | "SendMessage" | "ManageMessages" | "ManageWebhooks" | "InviteOthers" | "SendEmbeds" | "UploadFiles" | "React" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "GrantAllSafe")[]Permission names to check for
Whether the member has this permission
Checks whether the target member has a higher rank than this member.
The member to compare against
Whether this member is inferior to the target
Generated using TypeDoc
Server Member Class