Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildMember

Hierarchy

Index

Constructors

Properties

client: Client

The client that instantiated this structure

Raw member data

guildId: string

Theof the Guild the member is in

Accessors

  • get communicationDisabledUntil(): undefined | Date
  • The time this member's timeout will be removed

    Returns undefined | Date

  • get communicationDisabledUntilTimestamp(): undefined | number
  • The timestamp this member's timeout will be removed

    Returns undefined | number

  • get guild(): undefined | Guild
  • The Guild object the member is in

    Returns undefined | Guild

  • get id(): string
  • Theof the member

    Returns string

  • get joinedAt(): Date
  • The time this member joined the guild

    Returns Date

  • get joinedTimestamp(): number
  • The timestamp the member joined the guild at

    Returns number

  • get nick(): null | string
  • The nick of the member

    Returns null | string

  • The overall set of permissions for this member, taking only roles and owner status into account

    Returns PermissionsBitField

  • get premiumSince(): null | Date
  • The last time this member started boosting the guild

    Returns null | Date

  • get premiumSinceTimestamp(): null | number
  • The last timestamp this member started boosting the guild

    Returns null | number

  • The roles of the member

    example
    guildMember.roles.cache.map(r => r.name).join(', ');
    
    example
    guildMember.set([], 'They don\'t deserve roles');
    

    Returns GuildMemberRoleManager

  • The User object of the member

    Returns User

Methods

  • ban(options?: BanOptions): undefined | Promise<GuildBan>
  • Bans this member from the guild

    example
    guildMember.ban()
    
    example
    guildMember.ban({ reason: 'Spamming', days: 1 })
    

    Parameters

    Returns undefined | Promise<GuildBan>

  • clone(): any
  • Returns any

  • Edits this member

    example
    guildMember.edit({ roles: ['12345678901234567'] })
    
    example
    guildMember.edit({ nick: 'Veric', roles: ['2345678954234590'] })
    

    Parameters

    • data: GuildMemberEditData

      The data to edit the member with

    • reason: string = ''

      The reason for editing the member

    Returns undefined | Promise<GuildMember>

  • Fetches this GuildMember

    Returns undefined | Promise<GuildMember>

  • kick(reason?: string): undefined | Promise<undefined>
  • Kicks this member from the guild

    Parameters

    • reason: string = ''

      Reason for kicking user

    Returns undefined | Promise<undefined>

  • toString(): string
  • Returns the mention of the member

    Returns string

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:15 AM