@wildix/xbees-conversations-client > UnpinMessageCommand
UnpinMessageCommand class
Unpins the message that was previously pinned. This operation is idempotent, meaning that if the message is not pinned, no error will be thrown.
Signature:
export declare class UnpinMessageCommand extends UnpinMessageCommand_base
Extends: UnpinMessageCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, UnpinMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, UnpinMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // UnpinMessageInput
channelId: "STRING_VALUE", // required
messageId: "STRING_VALUE", // required
userId: "STRING_VALUE",
silent: true || false,
};
const command = new UnpinMessageCommand(input);
const response = await client.send(command);
// {};