Table of Contents

Class MessageExtensions

Namespace
DSharpPlus.Interactivity.Extensions
Assembly
DSharpPlus.Interactivity.dll

Interactivity extension methods for DiscordMessage.

public static class MessageExtensions
Inheritance
MessageExtensions

Methods

CollectReactionsAsync(DiscordMessage, TimeSpan?)

Collects all reactions on this message within the timeout duration.

DoPollAsync(DiscordMessage, IEnumerable<DiscordEmoji>, PollBehaviour?, TimeSpan?)

Begins a poll using this message.

GetNextMessageAsync(DiscordMessage, Func<DiscordMessage, bool>, TimeSpan?)

Waits for the next message with the same author and channel as this message, which also satisfies a predicate.

GetNextMessageAsync(DiscordMessage, TimeSpan?)

Waits for the next message that has the same author and channel as this message.

WaitForButtonAsync(DiscordMessage)

Waits for any button to be pressed on the specified message.

WaitForButtonAsync(DiscordMessage, DiscordUser, TimeSpan?)

Waits for any button to be pressed on the specified message by the specified user.

WaitForButtonAsync(DiscordMessage, DiscordUser, CancellationToken)

Waits for any button to be pressed on the specified message by the specified user.

WaitForButtonAsync(DiscordMessage, Func<ComponentInteractionCreatedEventArgs, bool>, TimeSpan?)

Waits for any button to be interacted with.

WaitForButtonAsync(DiscordMessage, Func<ComponentInteractionCreatedEventArgs, bool>, CancellationToken)

Waits for any button to be interacted with.

WaitForButtonAsync(DiscordMessage, TimeSpan?)

Waits for any button to be pressed on the specified message.

WaitForButtonAsync(DiscordMessage, string, TimeSpan?)

Waits for a button with the specified Id to be pressed on the specified message.

WaitForButtonAsync(DiscordMessage, string, CancellationToken)

Waits for a button with the specified Id to be pressed on the specified message.

WaitForButtonAsync(DiscordMessage, CancellationToken)

Waits for any button to be pressed on the specified message.

WaitForReactionAsync(DiscordMessage, DiscordUser, DiscordEmoji, TimeSpan?)

Waits for a specific reaction on this message from the specified user.

WaitForReactionAsync(DiscordMessage, DiscordUser, TimeSpan?)

Waits for a reaction on this message from a specific user.

WaitForSelectAsync(DiscordMessage, DiscordUser, string, TimeSpan?)

Waits for a dropdown to be interacted with by the specified user.

WaitForSelectAsync(DiscordMessage, DiscordUser, string, CancellationToken)

Waits for a dropdown to be interacted with by the specified user.

WaitForSelectAsync(DiscordMessage, Func<ComponentInteractionCreatedEventArgs, bool>, TimeSpan?)

Waits for any dropdown to be interacted with.

WaitForSelectAsync(DiscordMessage, Func<ComponentInteractionCreatedEventArgs, bool>, CancellationToken)

Waits for any dropdown to be interacted with.

WaitForSelectAsync(DiscordMessage, string, TimeSpan?)

Waits for a dropdown to be interacted with.

WaitForSelectAsync(DiscordMessage, string, CancellationToken)

Waits for a dropdown to be interacted with.