Constructor DiscordWebhookClient
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
DiscordWebhookClient()
Creates a new webhook client.
public DiscordWebhookClient()
DiscordWebhookClient(IWebProxy, TimeSpan?, bool, ILoggerFactory, LogLevel, string)
Creates a new webhook client, with specified HTTP proxy, timeout, and logging settings.
public DiscordWebhookClient(IWebProxy proxy = null, TimeSpan? timeout = null, bool useRelativeRateLimit = true, ILoggerFactory loggerFactory = null, LogLevel minimumLogLevel = LogLevel.Information, string logTimestampFormat = "yyyy-MM-dd HH:mm:ss zzz")
Parameters
proxy
IWebProxyThe proxy to use for HTTP connections. Defaults to null.
timeout
TimeSpan?The optional timeout to use for HTTP requests. Set to InfiniteTimeSpan to disable timeouts. Defaults to null.
useRelativeRateLimit
boolWhether to use the system clock for computing rate limit resets. See UseRelativeRatelimit for more details. Defaults to true.
loggerFactory
ILoggerFactoryThe optional logging factory to use for this client. Defaults to null.
minimumLogLevel
LogLevelThe minimum logging level for messages. Defaults to information.
logTimestampFormat
stringThe timestamp format to use for the logger.