Method DispatchAsync
- Namespace
- DSharpPlus.Clients
- Assembly
- DSharpPlus.dll
DispatchAsync<T>(DiscordClient, T)
Dispatches the given event.
ValueTask DispatchAsync<T>(DiscordClient client, T eventArgs) where T : DiscordEventArgs
Parameters
client
DiscordClientThe origin DiscordClient instance.
eventArgs
TThe event to dispatch.
Returns
Type Parameters
T
The type of event to dispatch.