Table of Contents

Constructor DiscordClient

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

DiscordClient(ILogger<DiscordClient>, DiscordApiClient, IMessageCacheProvider, IServiceProvider, IEventDispatcher, IClientErrorHandler, IOptions<DiscordConfiguration>, IOptions<TokenContainer>, IShardOrchestrator, IOptions<GatewayClientOptions>, Channel<GatewayPayload>, Channel<DiscordWebhookEvent>, Channel<DiscordHttpInteractionPayload>)

[ActivatorUtilitiesConstructor]
public DiscordClient(ILogger<DiscordClient> logger, DiscordApiClient apiClient, IMessageCacheProvider messageCacheProvider, IServiceProvider serviceProvider, IEventDispatcher eventDispatcher, IClientErrorHandler errorHandler, IOptions<DiscordConfiguration> configuration, IOptions<TokenContainer> token, IShardOrchestrator shardOrchestrator, IOptions<GatewayClientOptions> gatewayOptions, Channel<GatewayPayload> eventChannel, Channel<DiscordWebhookEvent> webhookEventChannel, Channel<DiscordHttpInteractionPayload> interactionEventChannel)

Parameters

logger ILogger<DiscordClient>
apiClient DiscordApiClient
messageCacheProvider IMessageCacheProvider
serviceProvider IServiceProvider
eventDispatcher IEventDispatcher
errorHandler IClientErrorHandler
configuration IOptions<DiscordConfiguration>
token IOptions<TokenContainer>
shardOrchestrator IShardOrchestrator
gatewayOptions IOptions<GatewayClientOptions>
eventChannel Channel<GatewayPayload>
webhookEventChannel Channel<DiscordWebhookEvent>
interactionEventChannel Channel<DiscordHttpInteractionPayload>