Table of Contents
API reference

Method WaitForEventArgsAsync

Namespace
DisCatSharp.Interactivity
Assembly
DisCatSharp.Interactivity.dll

WaitForEventArgsAsync<T>(Func<T, bool>, TimeSpan?)

Waits for specific event args to be received. Make sure the appropriate DiscordIntents are registered, if needed.

public Task<InteractivityResult<T>> WaitForEventArgsAsync<T>(Func<T, bool> predicate, TimeSpan? timeoutOverride = null) where T : AsyncEventArgs

Parameters

predicate Func<T, bool>

The predicate.

timeoutOverride TimeSpan?

Override timeout period.

Returns

Task<InteractivityResult<T>>

Type Parameters

T