Method CreateEventCollector
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
CreateEventCollector<T>(Func<T, bool>, TimeSpan)
Creates a new event collector for events of the specified type.
public EventCollector<T> CreateEventCollector<T>(Func<T, bool> condition, TimeSpan timeout) where T : DiscordEventArgs
Parameters
conditionFunc<T, bool>The condition events need to match before they are collected.
timeoutTimeSpanThe time events should be collected for.
Returns
Type Parameters
T