Skip to main content

CommunityRoleEvents

CommunityRoleEvents = object

Event map type for CommunityRoleClient. This type defines the event signatures for role-related events.

For event name constants, see CommunityRoleEvent.

Properties

communityRole.created()

communityRole.created: (evt: CommunityRoleCreatedEvent) => void

Parameters

ParameterType
evtCommunityRoleCreatedEvent

Returns

void

Example

import { rootServer, CommunityRoleEvent, CommunityRoleCreatedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleCreated, (evt: CommunityRoleCreatedEvent) => {
// ...
});

communityRole.deleted()

communityRole.deleted: (evt: CommunityRoleDeletedEvent) => void

Parameters

ParameterType
evtCommunityRoleDeletedEvent

Returns

void

Example

import { rootServer, CommunityRoleEvent, CommunityRoleDeletedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleDeleted, (evt: CommunityRoleDeletedEvent) => {
// ...
});

communityRole.edited()

communityRole.edited: (evt: CommunityRoleEditedEvent) => void

Parameters

ParameterType
evtCommunityRoleEditedEvent

Returns

void

Example

import { rootServer, CommunityRoleEvent, CommunityRoleEditedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleEdited, (evt: CommunityRoleEditedEvent) => {
// ...
});

communityRole.moved()

communityRole.moved: (evt: CommunityRoleMovedEvent) => void

Parameters

ParameterType
evtCommunityRoleMovedEvent

Returns

void

Example

import { rootServer, CommunityRoleEvent, CommunityRoleMovedEvent } from "@rootsdk/server-app";
rootServer.community.communityRoles.on(CommunityRoleEvent.CommunityRoleMoved, (evt: CommunityRoleMovedEvent) => {
// ...
});