@amityco/ts-sdk
Version:
Amity Social Cloud Typescript SDK
17 lines • 604 B
TypeScript
/**
* ```js
* import { onCommunityJoined } from '@amityco/ts-sdk'
* const dispose = onCommunityJoined((community, member) => {
* // ...
* })
* ```
*
* Fired when a {@link Amity.Community} has been joined
*
* @param callback The function to call when the event was fired
* @returns an {@link Amity.Unsubscriber} function to stop listening
*
* @category Community Events
*/
export declare const onCommunityJoined: (callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
//# sourceMappingURL=onCommunityJoined.d.ts.map