Table of Contents

Interface IIntegration

Namespace
Discord
Assembly
Discord.Net.Core.dll

Holds information for an integration feature. Nullable fields not provided for Discord bot integrations, but are for Twitch etc.

public interface IIntegration

Properties

Account

Gets integration account information.

IIntegrationAccount Account { get; }

Property Value

IIntegrationAccount

Application

Gets the bot/OAuth2 application for a discord integration.

IIntegrationApplication Application { get; }

Property Value

IIntegrationApplication

ExpireBehavior

Gets the behavior of expiring subscribers.

IntegrationExpireBehavior? ExpireBehavior { get; }

Property Value

IntegrationExpireBehavior?

ExpireGracePeriod

Gets the grace period before expiring "subscribers".

int? ExpireGracePeriod { get; }

Property Value

int?

Guild

IGuild Guild { get; }

Property Value

IGuild

GuildId

ulong GuildId { get; }

Property Value

ulong

HasEnabledEmoticons

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

bool? HasEnabledEmoticons { get; }

Property Value

bool?

Id

Gets the integration ID.

ulong Id { get; }

Property Value

ulong

A ulong representing the unique identifier value of this integration.

IsEnabled

Gets a value that indicates whether this integration is enabled or not.

bool IsEnabled { get; }

Property Value

bool

true if this integration is enabled; otherwise false.

IsRevoked

Gets whether this integration been revoked.

bool? IsRevoked { get; }

Property Value

bool?

IsSyncing

Gets a value that indicates whether this integration is syncing or not.

bool? IsSyncing { get; }

Property Value

bool?

true if this integration is syncing; otherwise false.

Remarks

An integration with syncing enabled will update its "subscribers" on an interval, while one with syncing disabled will not. A user must manually choose when sync the integration if syncing is disabled.

Name

Gets the integration name.

string Name { get; }

Property Value

string

A string containing the name of this integration.

RoleId

Gets the ID that this integration uses for "subscribers".

ulong? RoleId { get; }

Property Value

ulong?

SubscriberCount

Gets how many subscribers this integration has.

int? SubscriberCount { get; }

Property Value

int?

SyncedAt

Gets when this integration was last synced.

DateTimeOffset? SyncedAt { get; }

Property Value

DateTimeOffset?

A DateTimeOffset containing a date and time of day when the integration was last synced.

Type

Gets the integration type (Twitch, YouTube, etc).

string Type { get; }

Property Value

string

A string containing the name of the type of integration.

User

Gets the user for this integration.

IUser User { get; }

Property Value

IUser