Skip to main content

@wildix/xbees-conversations-client > HideChannelCommand

HideChannelCommand class

Allows a user to hide an existing channel. This operation requires the channel to be accessible to the user.

Signature:

export declare class HideChannelCommand extends HideChannelCommand_base 

Extends: HideChannelCommand_base

Example

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

import { ConversationsClient, HideChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, HideChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // HideChannelInput
channelId: "STRING_VALUE", // required
userId: "STRING_VALUE",
};
const command = new HideChannelCommand(input);
const response = await client.send(command);
// {};