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
conditionFunc<T, bool>The condition an event needs to match before it fulfils the event waiter.
timeoutTimeSpanA timeout for this event waiter.
Returns
- EventWaiter<T>
Type Parameters
T