Table of Contents

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 DiscordMessage

The message to collect reactions from.

timeoutOverride TimeSpan?

Overrides the timeout set in Timeout

Returns

Task<ReadOnlyCollection<Reaction>>

Exceptions

InvalidOperationException

Thrown if interactivity is not enabled for the client associated with the message.