Method CollectReactionsAsync
- Namespace
- DSharpPlus.Interactivity.Extensions
- Assembly
- DSharpPlus.Interactivity.dll
CollectReactionsAsync(DiscordMessage, TimeSpan?)
Collects all reactions on this message within the timeout duration.
public static Task<ReadOnlyCollection<Reaction>> CollectReactionsAsync(this DiscordMessage message, TimeSpan? timeoutOverride = null)
Parameters
message
DiscordMessageThe message to collect reactions from.
timeoutOverride
TimeSpan?Overrides the timeout set in Timeout
Returns
Exceptions
- InvalidOperationException
Thrown if interactivity is not enabled for the client associated with the message.