Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function getReactions
import { getReactions } from "https://deno.land/x/discordeno@17.0.0/helpers/messages/reactions/mod.ts";

Gets the list of users that reacted with an emoji to a message.

Parameters

bot: Bot
  • The bot instance to use to make the request.
channelId: BigString
  • The ID of the channel the message to get the users for is in.
messageId: BigString
  • The ID of the message to get the users for.
reaction: string
  • The reaction for which to get the users.
optional
options: GetReactions
  • The parameters for the fetching of the users.

Returns

Promise<Collection<bigint, User>>

A collection of User objects assorted by user ID.