@wildix/xbees-conversations-client > ListChannelMembersCommand
ListChannelMembersCommand class
Retrieves a list of members for a specific channel. Supports pagination through limit and offset parameters.
Signature:
export declare class ListChannelMembersCommand extends ListChannelMembersCommand_base
Extends: ListChannelMembersCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, ListChannelMembersCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, ListChannelMembersCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // ListChannelMembersInput
channelId: "STRING_VALUE", // required
limit: Number("int"),
offset: Number("int"),
};
const command = new ListChannelMembersCommand(input);
const response = await client.send(command);
// { // ListChannelMembersOutput
// members: [ // ChannelMembersList // required
// { // ChannelMember
// id: "STRING_VALUE", // required
// createdAt: "STRING_VALUE", // required
// role: "member" || "supervisor", // required
// },
// ],
// users: [ // UsersList // required
// { // 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",
// },
// ],
// };