Class UserClient

UserClient represents the logged bot's user.

Hierarchy

Constructors

Properties

Accessors

Constructors

  • Parameters

    • data: {
          botId: string;
          createdAt: string;
          createdBy: string;
          id: string;
          name: string;
      }

      raw data.

      • botId: string
      • createdAt: string
      • createdBy: string
      • id: string
      • name: string
    • client: Client

      client.

    Returns UserClient

Properties

_createdAt: number

Timestamp (unix epoch time) of the user's creation.

botID: string

Client User Bot ID

client: Client

Bot's client.

createdBy: string

ID of the bot's owner.

id: string | number

Item ID

type: string

User type (user, bot)

username: string

User's name

Accessors