Table of Contents

Method GetReactionsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

GetReactionsAsync(ulong, ulong, string, ulong?, int)

Gets all users that reacted with a specific emoji to a message

public Task<IReadOnlyList<DiscordUser>> GetReactionsAsync(ulong channelId, ulong messageId, string emoji, ulong? afterId = null, int limit = 25)

Parameters

channelId ulong

Channel ID

messageId ulong

Message ID

emoji string

Emoji to check for

afterId ulong?

Whether to search for reactions after this message id.

limit int

The maximum amount of reactions to fetch.

Returns

Task<IReadOnlyList<DiscordUser>>

GetReactionsAsync(ulong, ulong, DiscordEmoji, ulong?, int)

Gets all users that reacted with a specific emoji to a message

public Task<IReadOnlyList<DiscordUser>> GetReactionsAsync(ulong channelId, ulong messageId, DiscordEmoji emoji, ulong? afterId = null, int limit = 25)

Parameters

channelId ulong

Channel ID

messageId ulong

Message ID

emoji DiscordEmoji

Emoji to check for

afterId ulong?

Whether to search for reactions after this message id.

limit int

The maximum amount of reactions to fetch.

Returns

Task<IReadOnlyList<DiscordUser>>