Table of Contents

Class EventHandlerCollection

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Contains an in-construction, mutable, list of event handlers filtered by event name.

public sealed class EventHandlerCollection
Inheritance
object
EventHandlerCollection

Properties

this[Type]

Gets the registered handlers for a type, or an empty collection if none were configured. These are returned as object, and individual elements must be casted to Func<DiscordClient, TEventArgs, IServiceProvider, Task>.

Methods

Register(Type)

Registers all type-wise event handlers implemented by a specific type.

Register<T>(Func<DiscordClient, T, Task>)

Registers a single simple event handler.