Table of Contents

Class DefaultEventDispatcher

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

The default DSharpPlus event dispatcher, dispatching events asynchronously and using a shared scope. Catch-all event handlers referencing DiscordEventArgs are supported.

public sealed class DefaultEventDispatcher : IEventDispatcher
Inheritance
object
DefaultEventDispatcher
Implements

Constructors

DefaultEventDispatcher(IServiceProvider, IOptions<EventHandlerCollection>, IClientErrorHandler, ILogger<IEventDispatcher>)

Methods

DispatchAsync<T>(DiscordClient, T)

Dispatches the given event.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.