Member State
When building out your chat experience, you might want to moderate some actions based on the state of a community member. That's where member state comes in. With a single getMemberState()
function you can determine if a member is a CM, or not.
final bool isCM = await lmChatClient.getMemberState();
MemberStateResponse
List of parameters for the MemberStateResponse
class
Variable | Type | Description | Optional |
---|---|---|---|
isCM | bool | Is the user a community manager | |
memberStatus | String | Status of the member | ✔️ |
errorMessage | String? | Error message in case of failure | ✔️ |