Table of Contents
API reference

Method DeleteIdentityAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

DeleteIdentityAsync(ulong, ulong, string, string, string?, CancellationToken)

Deletes an application identity and its associated profile data.

public Task DeleteIdentityAsync(ulong applicationId, ulong userId, string providerType, string externalUserId, string? providerId = null, CancellationToken cancellationToken = default)

Parameters

applicationId ulong

The bot application's ID.

userId ulong

The Discord user ID.

providerType string

The external provider type.

externalUserId string

The provider-issued user ID.

providerId string

The optional provider-specific identifier.

cancellationToken CancellationToken

A cancellation token.

Returns

Task

A task representing the request.

Remarks

Discord prevents deletion of a user's last account-linking identity; profile-only identities can be deleted.