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
Returns
Type Parameters
T