Class DiscordOAuth2ClientConfiguration
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Configures a DiscordOAuth2Client.
public sealed class DiscordOAuth2ClientConfiguration
- Inheritance
-
DiscordOAuth2ClientConfiguration
- Inherited Members
Properties
- ClientId
Sets the Discord application client ID.
- ClientSecret
Sets the Discord application client secret.
- LogTimestampFormat
Sets the timestamp format used by the default logger.
- LoggerFactory
Sets the logging factory used by the client. Defaults to the DisCatSharp logger factory.
- MinimumLogLevel
Sets the minimum log level. Defaults to Information.
- RedirectUri
Sets the OAuth2 redirect URI.
- RsaKeyFilePath
Sets the file that stores the shared OAuth2 RSA private key. Relative paths are resolved from the process working directory. Clients using the same file can read each other's secure states and retain that capability across restarts.
- ServiceProvider
Sets the service provider exposed by the client. Defaults to an empty service provider.
- Timeout
Sets the timeout used for HTTP requests. Defaults to ten seconds. Use InfiniteTimeSpan to disable timeouts.
- UseRelativeRateLimit
Sets whether the system clock is used to compute rate-limit resets. Defaults to true.