*** id: 9c2ea691-eb38-41f8-bc30-92eb498b38f2 title: getMemberState slug: /js/reference/chat/client/get-member-state max-toc-depth: 3 ---------------- * **getMemberState**(`params`): `Promise<{ channels: Record }>` Returns the states of a member in the specified channels. ## Parameters Configuration object for getting member state Channels for which to get the state. Id of the member for which to get the state. ## Returns `Promise<{ channels: Record }>` ## Example ```js const s = await chatClient.getMemberState({ channels: ["chan1", "chan2"], memberId: "my-member-id", }); s.channels.length; // 2 s.channels.chan1.state; // the state object for chan1 ```