Table of Contents

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

condition Func<T, bool>
timeout TimeSpan

Returns

Task<IReadOnlyList<T>>

Type Parameters

T