Skip to main content

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

VariableTypeDescriptionOptional
isCMboolIs the user a community manager
memberStatusStringStatus of the member✔️
errorMessageString?Error message in case of failure✔️