Skip to content

Integration ​

classe · Source

Represents a guild integration.

Extends: Base

Properties ​

guild ​

guild: Guild

The guild this integration belongs to Source

id ​

id: Snowflake | string

The integration id Source

name ​

name: string

The integration name Source

type ​

type: IntegrationType

The integration type Source

enabled ​

enabled: boolean

Whether this integration is enabled Source

syncing ​

nullable

syncing: boolean

Whether this integration is syncing Source

role ​

nullable

role: Role

The role that this integration uses for subscribers Source

enableEmoticons ​

nullable

enableEmoticons: boolean

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

user ​

nullable

user: User

The user for this integration Source

account ​

account: IntegrationAccount

The account integration information Source

syncedAt ​

nullable

syncedAt: number

The last time this integration was last synced Source

subscriberCount ​

nullable

subscriberCount: number

How many subscribers this integration has Source

revoked ​

nullable

revoked: boolean

Whether this integration has been revoked Source

roles ​

readonly

roles: Collection<Snowflake, Role>

All roles that are managed by this integration Source

expireBehavior ​

nullable

expireBehavior: number

The behavior of expiring subscribers Source

expireGracePeriod ​

nullable

expireGracePeriod: number

The grace period before expiring subscribers Source

application ​

nullable

application: IntegrationApplication

The application for this integration Source

client ​

readonly

client: Client

The client that instantiated this Source

Methods ​

delete ​

async

async delete(reason?: string): Promise<Integration>

Deletes this integration. Parameters

NameTypeDescription
reason?stringReason for deleting this integration

Returns: Promise<Integration>Source

Unofficial software. Not affiliated with or supported by Discord.