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
DiscordApiClientmessageCacheProvider
IMessageCacheProviderserviceProvider
IServiceProvidereventDispatcher
IEventDispatchererrorHandler
IClientErrorHandlerconfiguration
IOptions<DiscordConfiguration>token
IOptions<TokenContainer>shardOrchestrator
IShardOrchestratorgatewayOptions
IOptions<GatewayClientOptions>eventChannel
Channel<GatewayPayload>webhookEventChannel
Channel<DiscordWebhookEvent>interactionEventChannel
Channel<DiscordHttpInteractionPayload>