Update Member Rights
To update member rights, use the updateMemberRights
function. This function modifies the permissions and custom titles of a member.
Steps to Update Member Rights
- Use the
updateMemberRights()
function provided by thelmFeedClient
object. - Create an instance of
UpdateMemberRightsRequest
, as shown in the snippet, and pass it to the above method. - Use the response as per your requirement.
import UpdateMemberRightsRequest from "../requests/updateMemberRightsRequest";
try {
const updateMemberRightsRequest = UpdateMemberRightsRequest.builder()
.setUuid(uuid) // UUID of the member
.setIsCM(isCM) // Whether the member is a Community Manager
.setRights(rights) // List of rights assigned to the member
.setCustomTitle(customTitle) // Custom title for the member
.build();
const response = await lmFeedClient.updateMemberRights(
updateMemberRightsRequest
);
// Use the response as per your requirement.
} catch (error) {
// Handle the error as per your requirement.
}
Models
UpdateMemberRightsRequest
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
uuid | string | UUID of the member | |
isCM | boolean | Whether the member is a Community Manager | |
rights | MemberRights[] | List of rights assigned to the member | |
customTitle | string | Custom title for the member |