UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

18 lines 899 B
/** * ```js * import { CommunityRepository } from '@amityco/ts-sdk-react-native' * const updated = await CommunityRepository.moderation.addRoles(communityId, ['foo', 'bar']) * ``` * * Adds a list of {@link Amity.Role} to a list of {@link Amity.InternalUser} on a {@link Amity.Community} * * @param communityId The ID of the {@link Amity.Community} to perform * @param roleIds Array of IDs of the {@link Amity.Role} to apply * @param userIds Array of IDs of the {@link Amity.InternalUser} to perform * @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.InternalUser} in the {@link Amity.Community} * * @category Community API * @async */ export declare const addRoles: (communityId: Amity.Community['communityId'], roleIds: Amity.Role['roleId'][], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>; //# sourceMappingURL=addRoles.d.ts.map