Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/helpers/mod.ts>getReactions

Discord API library for Deno
Latest
function getReactions
import { getReactions } from "https://deno.land/x/discordeno@18.0.1/helpers/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.