CommunityRoleEvents
CommunityRoleEvents:
object
Type declaration
communityRole.created()
created: (
evt:CommunityRoleCreatedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleCreatedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleCreatedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleCreated, (evt: CommunityRoleCreatedEvent) => {
// ...
});
communityRole.deleted()
deleted: (
evt:CommunityRoleDeletedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleDeletedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleDeletedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleDeleted, (evt: CommunityRoleDeletedEvent) => {
// ...
});
communityRole.edited()
edited: (
evt:CommunityRoleEditedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityRoleEditedEvent |
Returns
void
Example
import { rootServer, CommunityRoleEvent, CommunityRoleEditedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleEdited, (evt: CommunityRoleEditedEvent) => {
// ...
});