Discore
Show / Hide Table of Contents

Method GetReactions

| Improve this Doc View Source

GetReactions(Snowflake, Snowflake, DiscordReactionEmoji, Snowflake?, int?, ReactionGetStrategy)

Gets a paginated list of users who reacted to the specified message with the specified emoji.

Declaration
public Task<IReadOnlyList<DiscordUser>> GetReactions(Snowflake channelId, Snowflake messageId, DiscordReactionEmoji emoji, Snowflake? baseUserId = null, int? limit = null, ReactionGetStrategy getStrategy = ReactionGetStrategy.Before)
Parameters
Type Name Description
Snowflake channelId
Snowflake messageId
DiscordReactionEmoji emoji
Snowflake? baseUserId

The user ID to start at when retrieving reactions.

int? limit

The maximum number of reactions to return or null to use the default.

ReactionGetStrategy getStrategy

The pagination strategy to use based on baseUserId.

Returns
Type Description
Task<IReadOnlyList<DiscordUser>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
| Improve this Doc View Source

GetReactions(DiscordMessage, DiscordReactionEmoji, Snowflake?, int?, ReactionGetStrategy)

Gets a paginated list of users who reacted to the specified message with the specified emoji.

Declaration
public Task<IReadOnlyList<DiscordUser>> GetReactions(DiscordMessage message, DiscordReactionEmoji emoji, Snowflake? baseUserId = null, int? limit = null, ReactionGetStrategy getStrategy = ReactionGetStrategy.Before)
Parameters
Type Name Description
DiscordMessage message
DiscordReactionEmoji emoji
Snowflake? baseUserId

The user ID to start at when retrieving reactions.

int? limit

The maximum number of reactions to return or null to use the default.

ReactionGetStrategy getStrategy

The pagination strategy to use based on baseUserId.

Returns
Type Description
Task<IReadOnlyList<DiscordUser>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX