Table of Contents

Method ModifyIntegrationAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.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.

ModifyIntegrationAsync(ulong, int, int, bool)

Modifies an integration in this guild.

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

Parameters

integrationId ulong

The id of the 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.