Table of Contents

Method CreateEventWaiter

Namespace
DSharpPlus.Clients
Assembly
DSharpPlus.dll

CreateEventWaiter<T>(Func<T, bool>, TimeSpan)

Creates a new event waiter for an event of the specified type.

EventWaiter<T> CreateEventWaiter<T>(Func<T, bool> condition, TimeSpan timeout) where T : DiscordEventArgs

Parameters

condition Func<T, bool>

The condition an event needs to match before it fulfils the event waiter.

timeout TimeSpan

A timeout for this event waiter.

Returns

EventWaiter<T>

Type Parameters

T