> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# getMemberState

* **getMemberState**(`params`): `Promise<{ channels: Record<string, ChatChannelState> }>`

Returns the states of a member in the specified channels.

## Parameters

**`params`** `object` — required

Configuration object for getting member state

---

**`params.channels`** `string | string[]`

Channels for which to get the state.

---

**`params.memberId`** `string` — required

Id of the member for which to get the state.

---

## Returns

`Promise<{ channels: Record<string, ChatChannelState> }>`

## 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
```