Skip to main content

Member State

The getMemberState function is used to fetch the member state of the current user. It provides information about the user's status, creation timestamp, edit requirements, and more.

Steps to Get Member State

  1. Use the getMemberState() function provided by the lmFeedClient object created earlier.
  2. Use the response as per your requirement
try {
const response = await lmFeedClient.getMemberState();
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}

Models

GetMemberStateResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
createdAtstringTimestamp of when the member state was created
editRequiredbooleanIndicates if edit is required
memberUserDetails of the member
memberRightsMemberRightObject of the community.
stateintMember State
toolStateintLogout response in case the user doesn't have the access.

Member Rights

VARIABLETYPEDESCRIPTIONOPTIONAL
idbooleanWhether topic is enabled or disabled.
isLockedstringInput text to search topics.
isSelectedstringType of search.
titlestringTitle of Member Right
subtitlestringSubtitle of Member Right
stateMemberRightStateState of Member Right

MemberRightState

enum MemberRightsState {
Unknown = -1,
ModerateChatRooms = 0,
ModerateMembers = 1,
EditCommunityDetails = 2,
ViewMemberContactInfo = 3,
AddCommunityManager = 4,
ModerateDMSetting = 5,
ModerateFeedAndComment = 6
}