Method Register
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
Register<T>(Func<DiscordClient, T, Task>)
Registers a single simple event handler.
public void Register<T>(Func<DiscordClient, T, Task> handler) where T : DiscordEventArgs
Parameters
handler
Func<DiscordClient, T, Task>The event handler.
Type Parameters
T
The type of event args this handler consumes.
Register(Type)
Registers all type-wise event handlers implemented by a specific type.
public void Register(Type t)
Parameters
t
Type