Class ClientUser

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

The client the data model belongs to.

createdAt?: Date

The date the user was created.

createdBy: string

The ID of the user that created the client user.

id: string

The ID of the structure.

name: string

The name of the user.

The raw data of the client user.

type?: UserType

The type of the user.

Accessors

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

    Returns undefined | number