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
applicationIdulongThe bot application's ID.
userIdulongThe Discord user ID.
providerTypestringThe external provider type.
externalUserIdstringThe provider-issued user ID.
providerIdstringThe optional provider-specific identifier.
cancellationTokenCancellationTokenA 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.