Represents a member of a guild on Discord.
Extends
PartialTextBasedChannel(Base)The timestamp this member's timeout will be removed
The nickname of this member, or their user display name if they don't have one
Whether the client user is above this user in the hierarchy, according to role position and guild ownership. This is a prerequisite for many moderative actions.
The overall set of permissions for this member, taking only roles and owner status into account
A link to the member's guild avatar.
Returns
Name | Type | Optional | Description |
---|---|---|---|
options | ImageURLOptions | Yes | Options for the image URL |
Bans this guild member.
Name | Type | Optional | Description |
---|---|---|---|
options | BanOptions | Yes | Options for the ban |
Creates a DM channel between the client and this member.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
Deletes any DMs with this member.
Times this guild member out.
Name | Type | Optional | Description |
---|---|---|---|
communicationDisabledUntil | DateResolvable | null | No | The date or timestamp for the member's communication to be disabled until. Provide null to remove the timeout. |
reason | string | Yes | The reason for this timeout. |
A link to the member's guild avatar if they have one. Otherwise, a link to their displayAvatarURL will be returned.
Name | Type | Optional | Description |
---|---|---|---|
options | ImageURLOptions | Yes | Options for the Image URL |
Edits this member.
Name | Type | Optional | Description |
---|---|---|---|
options | GuildMemberEditOptions | No | The options to provide |
Fetches this GuildMember.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
isCommunicationDisabled():this is GuildMember & {
communicationDisabledUntilTimestamp: number;
readonly communicationDisabledUntil: Date;
}
Whether this member is currently timed out
Kicks this member from the guild.
Name | Type | Optional | Description |
---|---|---|---|
reason | string | Yes | Reason for kicking user |
Returns
channel.permissionsFor(guildMember)
. Returns permissions for a member in a guild channel, taking into account roles and permission overwrites.Name | Type | Optional | Description |
---|---|---|---|
channel | GuildChannelResolvable | No | The guild channel to use as context |
Sets the flags for this member.
Name | Type | Optional | Description |
---|---|---|---|
flags | GuildMemberFlagsResolvable | No | The flags to set |
reason | string | Yes | Reason for setting the flags |
Sets the nickname for this member.
Name | Type | Optional | Description |
---|---|---|---|
nick | string | null | No | The nickname for the guild member, or null if you want to reset their nickname |
reason | string | Yes | Reason for setting the nickname |
Times this guild member out.
Name | Type | Optional | Description |
---|---|---|---|
timeout | number | null | No | The duration in milliseconds for the member's communication to be disabled. Provide null to remove the timeout. |
reason | string | Yes | The reason for this timeout. |
When concatenated with a string, this automatically returns the user's mention instead of the GuildMember object.