Table of Contents

Method ModifyIntegrationAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyIntegrationAsync(DiscordIntegration, int, int, bool)

Modifies an integration in this guild.

public Task<DiscordIntegration> ModifyIntegrationAsync(DiscordIntegration integration, int expireBehaviour, int expireGracePeriod, bool enableEmoticons)

Parameters

integration DiscordIntegration

Integration to modify.

expireBehaviour int

Number of days after which the integration expires.

expireGracePeriod int

Length of grace period which allows for renewing the integration.

enableEmoticons bool

Whether emotes should be synced from this integration.

Returns

Task<DiscordIntegration>

The modified integration.

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageGuild permission.

NotFoundException

Thrown when the guild does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.