Represents a guild member and provides methods to manage and interact with it.

Hierarchy (view full)

Constructors

Properties

#DATE: Date
#PREMIUM: Date
#TIMEOUTED: Date
#client: Client
#d: any
avatar: Nullable<string>

The avatar of the member.

communicationDisabled: boolean

Whether the member is communication disabled.

communicationDisabledUntil: Nullable<SnowflakeInformation>

The date until the member is communication disabled.

data: unknown
deafened: boolean

Whether the member is deafened.

flags: bigint

The flags associated with the member.

guild: Guild

The guild the member belongs to.

id: any
joined: SnowflakeInformation

The date the member joined the guild.

muted: boolean

Whether the member is muted.

nick: Nullable<string>

The nickname of the member.

pending: boolean

Whether the member is pending.

permissions: any

The permissions of the member.

premiumSince: SnowflakeInformation

The date the member started boosting the guild.

The presence status of the member.

role_ids: string[]

The IDs of the roles assigned to the member.

roles: MemberRolesManager

The roles manager for the member.

timeoutUntil: Nullable<SnowflakeInformation>

The timeout date of the member.

timeouted: boolean

Whether the member is timeouted.

user: User

The user associated with this member.

Accessors

Methods

  • Bans the member from the guild.

    Parameters

    • obj: {
          delete_message_seconds: number;
          reason: string;
      }

      The payload for banning the member.

      • delete_message_seconds: number
      • reason: string

    Returns Promise<Nullable<ResponseFromApi | ErrorResponseFromApi>>

    The response from the API.

Generated using TypeDoc