getMemberState
getMemberState
- getMemberState(
params):Promise<\{ channels: Record<string, ChatChannelState> \}>
Returns the states of a member in the specified channels.
Parameters
params
Object containing the parameters of the method.
channels
Channels for which to get the state.
memberId
ID of the member for which to get the state.
Returns
Promise<{ channels: Record<string, ChatChannelState> }>
A promise that resolves to an object containing the states of the member in the specified channels.
Example
In this example, we fetch the state of the member User1 in the channel
channel1 and print it to the console.