Method CollectEventsAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
CollectEventsAsync<T>(Func<T, bool>, TimeSpan)
Collects events matching the specified condition over the specified time span.
public Task<IReadOnlyList<T>> CollectEventsAsync<T>(Func<T, bool> condition, TimeSpan timeout) where T : DiscordEventArgs
Parameters
Returns
- Task<IReadOnlyList<T>>
Type Parameters
T