Skip to main content
Module

x/discordeno/mod.ts>getReactions

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