Table of Contents

Method DeleteIntegrationAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DeleteIntegrationAsync(DiscordIntegration, string?)

Removes an integration from this guild.

public Task DeleteIntegrationAsync(DiscordIntegration integration, string? reason = null)

Parameters

integration DiscordIntegration

Integration to remove.

reason string

Reason for audit logs.

Returns

Task

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.

DeleteIntegrationAsync(ulong, string?)

Removes an integration from this guild.

public Task DeleteIntegrationAsync(ulong integrationId, string? reason = null)

Parameters

integrationId ulong

The id of the Integration to remove.

reason string

Reason for audit logs.

Returns

Task

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.