Constructor DiscordClient
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
DiscordClient(ILogger<DiscordClient>, DiscordRestApiClientFactory, IMessageCacheProvider, IServiceProvider, IEventDispatcher, IClientErrorHandler, IOptions<DiscordConfiguration>, IOptions<TokenContainer>, IShardOrchestrator, IOptions<GatewayClientOptions>, Channel<GatewayPayload>, Channel<DiscordWebhookEvent>, Channel<DiscordHttpInteractionPayload>)
[ActivatorUtilitiesConstructor]
public DiscordClient(ILogger<DiscordClient> logger, DiscordRestApiClientFactory 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
loggerILogger<DiscordClient>apiClientDiscordRestApiClientFactorymessageCacheProviderIMessageCacheProviderserviceProviderIServiceProvidereventDispatcherIEventDispatchererrorHandlerIClientErrorHandlerconfigurationIOptions<DiscordConfiguration>tokenIOptions<TokenContainer>shardOrchestratorIShardOrchestratorgatewayOptionsIOptions<GatewayClientOptions>eventChannelChannel<GatewayPayload>webhookEventChannelChannel<DiscordWebhookEvent>interactionEventChannelChannel<DiscordHttpInteractionPayload>