Table of Contents

Class RestIntegration

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a Rest-based implementation of IIntegration.

public class RestIntegration : RestEntity<ulong>, IEntity<ulong>, IIntegration
Inheritance
RestIntegration
Implements
Inherited Members

Properties

Account

Gets integration account information.

public IIntegrationAccount Account { get; }

Property Value

IIntegrationAccount

Application

Gets the bot/OAuth2 application for a discord integration.

public IIntegrationApplication Application { get; }

Property Value

IIntegrationApplication

ExpireBehavior

Gets the behavior of expiring subscribers.

public IntegrationExpireBehavior? ExpireBehavior { get; }

Property Value

IntegrationExpireBehavior?

ExpireGracePeriod

Gets the grace period before expiring "subscribers".

public int? ExpireGracePeriod { get; }

Property Value

int?

GuildId

public ulong GuildId { get; }

Property Value

ulong

HasEnabledEmoticons

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

public bool? HasEnabledEmoticons { get; }

Property Value

bool?

IsEnabled

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

public bool IsEnabled { get; }

Property Value

bool

true if this integration is enabled; otherwise false.

IsRevoked

Gets whether this integration been revoked.

public bool? IsRevoked { get; }

Property Value

bool?

IsSyncing

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

public 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.

public string Name { get; }

Property Value

string

A string containing the name of this integration.

RoleId

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

public ulong? RoleId { get; }

Property Value

ulong?

SubscriberCount

Gets how many subscribers this integration has.

public int? SubscriberCount { get; }

Property Value

int?

SyncedAt

Gets when this integration was last synced.

public 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).

public string Type { get; }

Property Value

string

A string containing the name of the type of integration.

User

public RestUser User { get; }

Property Value

RestUser

Methods

DeleteAsync()

public Task DeleteAsync()

Returns

Task

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.