Represents a client user.

Example

new ClientUser(client, rawUser);

Hierarchy

Constructors

Properties

avatar?: string

The avatar of the user.

banner?: string

The banner of the user.

botId: string

The bot ID of the client user.

client: Client
createdAt?: Date

The date the user was created.

createdBy: string

The ID of the user that created the client user.

id: string
name: string

The name of the user.

type?: UserType

The type of the user.

Accessors

  • get createdTimestamp(): undefined | number
  • The timestamp the user was created.

    Returns undefined | number

  • get isBot(): boolean
  • Whether the user is a bot.

    Returns boolean

  • get isCached(): boolean
  • Whether the user is cached.

    Returns boolean

  • get isUser(): boolean
  • Whether the user is a human.

    Returns boolean