Skip to main content

@wildix/xbees-conversations-client > ListMessageReactionsCommand

ListMessageReactionsCommand class

Retrieves a list of reactions for a specific message in a specified channel. Supports pagination through limit and offset parameters.

Signature:

export declare class ListMessageReactionsCommand extends ListMessageReactionsCommand_base 

Extends: ListMessageReactionsCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ConversationsClient, ListMessageReactionsCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, ListMessageReactionsCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // ListMessageReactionsInput
channelId: "STRING_VALUE", // required
messageId: "STRING_VALUE", // required
limit: Number("int"),
offset: Number("int"),
};
const command = new ListMessageReactionsCommand(input);
const response = await client.send(command);
// { // ListMessageReactionsOutput
// reactions: [ // ReactionList // required
// { // Reaction
// type: "STRING_VALUE",
// userId: "STRING_VALUE",
// messageId: "STRING_VALUE",
// user: { // User
// id: "STRING_VALUE", // required
// name: "STRING_VALUE",
// email: "STRING_VALUE",
// phone: "STRING_VALUE",
// picture: "STRING_VALUE",
// locale: "STRING_VALUE",
// timeZone: "STRING_VALUE",
// company: "STRING_VALUE",
// bot: true || false,
// pbxDomain: "STRING_VALUE",
// pbxPort: "STRING_VALUE",
// pbxExtension: "STRING_VALUE",
// pbxSerial: "STRING_VALUE",
// pbxUserId: "STRING_VALUE",
// createdAt: "STRING_VALUE",
// updatedAt: "STRING_VALUE",
// },
// },
// ],
// };