Table of Contents

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

condition Func<T, bool>

The condition an event needs to match before it is added to the collector.

timeout TimeSpan

The timeout for this event collector.

Returns

EventCollector<T>

Type Parameters

T