@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
17 lines • 862 B
TypeScript
/**
* ```js
* import { updateCommunity } from '@amityco/ts-sdk-react-native'
* const updated = await updateCommunity(communityId, { displayName: 'foobar', isDiscoverable: true, requiresJoinApproval: false })
* ```
*
* Updates an {@link Amity.Community}
*
* @param communityId The ID of the {@link Amity.Community} to edit
* @param patch The patch data to apply
* @returns the updated {@link Amity.Community} object
*
* @category Community API
* @async
*/
export declare const updateCommunity: (communityId: Amity.Community['communityId'], patch: Patch<Amity.Community, 'displayName' | 'avatarFileId' | 'description' | 'postSetting' | 'tags' | 'metadata' | 'isDiscoverable' | 'requiresJoinApproval' | 'isPublic' | 'categoryIds'> & Amity.CommunityStorySettings) => Promise<Amity.Cached<Amity.Community>>;
//# sourceMappingURL=updateCommunity.d.ts.map