setMemberState
- setMemberState(
params):Promise<void>
Sets a state object for a member, for the specified channels. The previous state object will be completely replaced.
Parameters
params
Configuration object for setting member state
params.channels
Channels for which to set the state.
params.memberId
Id of the member to affect. If not provided, defaults to the current member.
params.state
The state to set. There are no requirements on the content of the state.
Returns
Promise<void>