Method GetReactions
| Improve this Doc View SourceGetReactions(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 |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<DiscordUser>> |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| DiscordHttpApiException |
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 |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<DiscordUser>> |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| DiscordHttpApiException |