Table of Contents

Class ExtensionMethods

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

Defines various extensions specific to OAuth2Web.

public static class ExtensionMethods
Inheritance
ExtensionMethods
Inherited Members

Methods

GetOAuth2Web(DiscordClient)

Gets the active OAuth2Web module for this client.

GetOAuth2WebAsync(DiscordShardedClient)

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

GetRequiredRedirectUris(IReadOnlyDictionary<int, OAuth2WebExtension>)

Gets the required redirect uris for the developer portal.

HasAllRequiredRedirectUrisSet(IReadOnlyDictionary<int, OAuth2WebExtension>, DiscordShardedClient)

Checks if all redirect uris are set for the application in the developer portal.

Use this function after you've executed StartAsync().

HasRequiredRedirectUriSet(OAuth2WebExtension)

Checks if all redirect uris are set for the application in the developer portal.

Use this function after you've executed ConnectAsync(DiscordActivity, UserStatus?, DateTimeOffset?, CancellationToken).

HasRequiredRedirectUriSet(OAuth2WebExtension, DiscordClient)

Checks if the redirect uri is set for the application in the developer portal.

Use this function after you've executed ConnectAsync(DiscordActivity, UserStatus?, DateTimeOffset?, CancellationToken).

Start(IReadOnlyDictionary<int, OAuth2WebExtension>)

Starts the oauth2 web server for all shards.

StopAsync(IReadOnlyDictionary<int, OAuth2WebExtension>)

Stops the oauth2 web server for all shards.

UseOAuth2Web(DiscordClient, OAuth2WebConfiguration)

Enables OAuth2Web module on this DiscordClient.

UseOAuth2WebAsync(DiscordShardedClient, OAuth2WebConfiguration)

Enables OAuth2Web module on all shards in this DiscordShardedClient.