Method WaitForMessageAsync
- Namespace
- DSharpPlus.Interactivity
- Assembly
- DSharpPlus.Interactivity.dll
WaitForMessageAsync(Func<DiscordMessage, bool>, TimeSpan?)
Waits for a specific message.
public Task<InteractivityResult<DiscordMessage>> WaitForMessageAsync(Func<DiscordMessage, bool> predicate, TimeSpan? timeoutoverride = null)
Parameters
predicate
Func<DiscordMessage, bool>Predicate to match.
timeoutoverride
TimeSpan?override timeout period.