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.