Table of Contents

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

condition Func<T, bool>

The condition events need to match before they are collected.

timeout TimeSpan

The time events should be collected for.

Returns

EventCollector<T>

Type Parameters

T