@wildix/xbees-conversations-client > SendMessageReactionCommand
SendMessageReactionCommand class
Sends a reaction to a specific message in a specified channel. This operation requires the channel to be accessible to the user.
Signature:
export declare class SendMessageReactionCommand extends SendMessageReactionCommand_base
Extends: SendMessageReactionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, SendMessageReactionCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, SendMessageReactionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // SendMessageReactionInput
channelId: "STRING_VALUE", // required
messageId: "STRING_VALUE", // required
reactionType: "thumbsup" || "clap" || "slightly_smiling_face" || "smiley" || "heart" || "eyes" || "white_check_mark" || "confused" || "thumbsdown", // required
userId: "STRING_VALUE",
};
const command = new SendMessageReactionCommand(input);
const response = await client.send(command);
// {};