Table of Contents
API reference

Method GetMetadataAsync

Namespace
DisCatSharp.Hosting.AspNetCore.LinkedRoles
Assembly
DisCatSharp.Hosting.AspNetCore.dll

GetMetadataAsync(CancellationToken)

Resolves the desired linked-roles metadata records.

ValueTask<IReadOnlyList<DiscordApplicationRoleConnectionMetadata>> GetMetadataAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<DiscordApplicationRoleConnectionMetadata>>

The metadata records that should be registered with Discord.