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
DiscordEmojiThe emoji those users reacted with.
cancellationToken
CancellationTokenCancels enumeration before the next API request.
Returns
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
ulongEmoji id for the reaction you want to remove
cancellationToken
CancellationTokenCancels enumeration before the next API request.
Returns
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.