Class RestConfiguration
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Configuration for Discord REST client settings.
public sealed class RestConfiguration
- Inheritance
-
RestConfiguration
- Inherited Members
Constructors
- RestConfiguration()
Creates a new REST configuration with default values.
- RestConfiguration(RestConfiguration)
Creates a clone of another REST configuration.
Properties
- Advanced
Advanced REST tuning options.
Most applications should not need to modify these settings.
- RequestTimeout
Sets the timeout for HTTP requests.
Set to InfiniteTimeSpan to disable timeouts.
Must be a positive duration or InfiniteTimeSpan.
Defaults to 20 seconds.
- UseRelativeRatelimit
Sets whether to rely on Discord for NTP (Network Time Protocol) synchronization with the "X-Ratelimit-Reset-After" header.
If the system clock is unsynced, setting this to true will ensure ratelimits are synced with Discord and reduce the risk of hitting one.
This should only be set to false if the system clock is synced with NTP.
Defaults to true.