Method CreateEventCollector
- Namespace
- DSharpPlus.Clients
- Assembly
- DSharpPlus.dll
CreateEventCollector<T>(Func<T, bool>, TimeSpan)
Creates a new event collector for an event of the specified type.
public EventCollector<T> CreateEventCollector<T>(Func<T, bool> condition, TimeSpan timeout) where T : DiscordEventArgs
Parameters
conditionFunc<T, bool>The condition an event needs to match before it is added to the collector.
timeoutTimeSpanThe timeout for this event collector.
Returns
Type Parameters
T