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
clientDiscordShardedClientClient to enable OAuth2Web for.
configOAuth2WebConfigurationOAuth2Web configuration to use.
Returns
- Task<IReadOnlyDictionary<int, OAuth2WebExtension>>
A dictionary of created OAuth2WebExtension, indexed by shard id.