Table of Contents
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

applicationId ulong

The bot application's 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<IReadOnlyList<DiscordApplicationIdentity>>

The matching identities, including Discord user IDs when supplied.