Table of Contents

Method GetOAuth2WebAsync

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

GetOAuth2WebAsync(DiscordShardedClient)

Gets the active OAuth2Web modules for all shards in this client.

public static Task<IReadOnlyDictionary<int, OAuth2WebExtension?>> GetOAuth2WebAsync(this DiscordShardedClient client)

Parameters

client DiscordShardedClient

Client to get OAuth2Web instances from.

Returns

Task<IReadOnlyDictionary<int, OAuth2WebExtension>>

A dictionary of the modules, indexed by shard id.