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

botID: string

Client User Bot ID

client: Client

Bot's client.

createdAt: Date

When the bot client was created.

id: string | number

Item ID

ownerID: string

ID of the bot's owner.

type: string

User type (user, bot)

username: string

User's name

Accessors