Table of Contents

Method DispatchAsync

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

DispatchAsync<T>(DiscordClient, T)

Dispatches the given event.

public ValueTask DispatchAsync<T>(DiscordClient client, T eventArgs) where T : DiscordEventArgs

Parameters

client DiscordClient

The origin DiscordClient instance.

eventArgs T

The event to dispatch.

Returns

ValueTask

Type Parameters

T

The type of event to dispatch.