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
proxy
IWebProxyProxy to use for HTTP connections.
timeout
TimeSpan?Timeout to use for HTTP requests. Set to System.Threading.Timeout.InfiniteTimeSpan to disable timeouts.
loggerFactory
ILoggerFactoryThe optional logging factory to use for this client.
minimumLogLevel
LogLevelThe minimum logging level for messages.
logTimestampFormat
stringThe timestamp format to use for the logger.