Table of Contents

Method UseOAuth2WebAsync

Namespace
DisCatSharp.Extensions.OAuth2Web
Assembly
DisCatSharp.Extensions.OAuth2Web.dll

UseOAuth2WebAsync(DiscordShardedClient, OAuth2WebConfiguration)

Enables OAuth2Web module on all shards in this DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, OAuth2WebExtension>> UseOAuth2WebAsync(this DiscordShardedClient client, OAuth2WebConfiguration config)

Parameters

client DiscordShardedClient

Client to enable OAuth2Web for.

config OAuth2WebConfiguration

OAuth2Web configuration to use.

Returns

Task<IReadOnlyDictionary<int, OAuth2WebExtension>>

A dictionary of created OAuth2WebExtension, indexed by shard id.