Table of Contents

Method GetReactionsAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetReactionsAsync(DiscordEmoji, CancellationToken)

Gets users that reacted with this emoji.

public IAsyncEnumerable<DiscordUser> GetReactionsAsync(DiscordEmoji emoji, CancellationToken cancellationToken = default)

Parameters

emoji DiscordEmoji

The emoji those users reacted with.

cancellationToken CancellationToken

Cancels enumeration before the next API request.

Returns

IAsyncEnumerable<DiscordUser>

Exceptions

NotFoundException

Thrown when the emoji does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

GetReactionsAsync(ulong, CancellationToken)

Gets users that reacted with this emoji.

public IAsyncEnumerable<DiscordUser> GetReactionsAsync(ulong emojiId, CancellationToken cancellationToken = default)

Parameters

emojiId ulong

Emoji id for the reaction you want to remove

cancellationToken CancellationToken

Cancels enumeration before the next API request.

Returns

IAsyncEnumerable<DiscordUser>

Remarks

This overload only works with guild or application emoji

Exceptions

NotFoundException

Thrown when the emoji does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.