Constructor DiscordWebhookClient
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
DiscordWebhookClient()
Creates a new webhook client.
public DiscordWebhookClient()
DiscordWebhookClient(IWebProxy, TimeSpan?, ILoggerFactory, LogLevel, string)
Creates a new webhook client, with specified HTTP proxy, timeout, and logging settings.
public DiscordWebhookClient(IWebProxy proxy = null, TimeSpan? timeout = null, ILoggerFactory loggerFactory = null, LogLevel minimumLogLevel = LogLevel.Information, string logTimestampFormat = "yyyy-MM-dd HH:mm:ss zzz")
Parameters
proxyIWebProxyProxy to use for HTTP connections.
timeoutTimeSpan?Timeout to use for HTTP requests. Set to InfiniteTimeSpan to disable timeouts.
loggerFactoryILoggerFactoryThe optional logging factory to use for this client.
minimumLogLevelLogLevelThe minimum logging level for messages.
logTimestampFormatstringThe timestamp format to use for the logger.