Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Integration<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Readonly account

account: APIIntegrationAccountData

The integration account information.

since

0.0.1

Readonly client

client: T

deleted

deleted: boolean = false

Whether the integration is deleted.

since

0.0.1

enableEmoticons

enableEmoticons: boolean | null

Whether emoticons should be synced for this integration (twitch only currently).

since

0.0.1

Readonly enabled

enabled: boolean

Whether this integration is enabled.

since

0.0.1

expireBehavior

expireBehavior: number

expireGracePeriod

expireGracePeriod: number

The grace period (in days) before expiring subscribers.

since

0.0.1

Readonly guild

guild: Guild

The guild this integration belongs to.

since

0.0.1

Readonly id

id: string

The integration id.

since

0.0.1

Readonly name

name: string

The integration name.

since

0.0.1

Readonly roleID

roleID: string

The role ID that this integration uses for "subscribers".

since

0.0.1

syncedTimestamp

syncedTimestamp: number

When this integration was last synced.

since

0.0.1

Readonly syncing

syncing: boolean

Whether this integration is syncing.

since

0.0.1

Readonly type

type: string

The integration type (twitch, youtube, etc).

since

0.0.1

Readonly userID

userID: string

The user ID for this integration.

since

0.0.1

Accessors

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

role

  • get role(): Role | null

user

  • get user(): User | null

Methods

Protected _patch

  • _patch(data: APIIntegrationData): this

clone

  • clone(): this

delete

  • delete(requestOptions?: RequestOptions): Promise<this>

modify

sync

  • sync(requestOptions?: RequestOptions): Promise<this>

toJSON

  • toJSON(): Record<string, any>

valueOf

  • valueOf(): string

Generated using TypeDoc