getMembers
getMembers
- getMembers(
params):Promise<{ members: ChatMemberEntity[] }>
Returns the list of members in the given channel.
Parameters
params
Object containing the parameters of the method.
channel
The channel for which to get the list of members.
Returns
Promise<{ members: ChatMemberEntity[] }>
A promise that resolves to an object containing the list of members in the given channel.
Example
In this example, we fetch all the members in the channel channel1 and print the
number of members and the list of members to the console.