Table of Contents

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 IWebProxy

Proxy to use for HTTP connections.

timeout TimeSpan?

Timeout to use for HTTP requests. Set to System.Threading.Timeout.InfiniteTimeSpan to disable timeouts.

loggerFactory ILoggerFactory

The optional logging factory to use for this client.

minimumLogLevel LogLevel

The minimum logging level for messages.

logTimestampFormat string

The timestamp format to use for the logger.