@wildix/xbees-conversations-client > DeleteMessageReactionCommand
DeleteMessageReactionCommand class
Deletes a reaction from a specific message in a specified channel. This operation is idempotent and requires the channel and message to be accessible to the user.
Signature:
export declare class DeleteMessageReactionCommand extends DeleteMessageReactionCommand_base
Extends: DeleteMessageReactionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, DeleteMessageReactionCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, DeleteMessageReactionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // DeleteMessageReactionInput
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 DeleteMessageReactionCommand(input);
const response = await client.send(command);
// {};