Method WaitForEventArgsAsync
- Namespace
- DSharpPlus.Interactivity
- Assembly
- DSharpPlus.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>timeoutoverride
TimeSpan?
Returns
- Task<InteractivityResult<T>>
Type Parameters
T