Community Configurations
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 Community Configurations
- Use the
getCommunityConfigurations()
function provided by thelmFeedClient
object created earlier. - Use the response as per your requirement
try {
const response = await lmFeedClient.getCommunityConfigurations();
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}
Models
GetCommunityConfigurationsResponse
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
communityConfigurations | Configuration | Community Configurations |
Configuration
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
description | string | Description of the configurations | |
type | ConfigurationType | Type of the configurations | |
value | JSONObject | Value of the configurations |
ConfigurationType
enum ManagerRightState {
MEDIA_LIMITS = "media_limits",
FEED_METADATA = "feed_metadata",
PROFILE_METADATA = "profile_metadata",
NSFW_FILTERING = "nsfw_filtering",
WIDGETS_METADATA = "widgets_metadata",
GUEST_FLOW_METADATA = "guest_flow_metadata",
}
JSONObject
interface JSONObject {
[key: string]: any;
}