API reference
Method GetIdentitiesByExternalIdAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetIdentitiesByExternalIdAsync(ulong, string, string, string?, CancellationToken)
Finds application identities by external provider and user ID.
public Task<IReadOnlyList<DiscordApplicationIdentity>> GetIdentitiesByExternalIdAsync(ulong applicationId, string providerType, string externalUserId, string? providerId = null, CancellationToken cancellationToken = default)
Parameters
applicationIdulongThe bot application's ID.
providerTypestringThe external provider type.
externalUserIdstringThe provider-issued user ID.
providerIdstringThe optional provider-specific identifier.
cancellationTokenCancellationTokenA cancellation token.
Returns
- Task<IReadOnlyList<DiscordApplicationIdentity>>
The matching identities, including Discord user IDs when supplied.