ChannelDirectoryEvents
ChannelDirectoryEvents =
object
Event map type for ChannelDirectoryClient. This type defines the event signatures for directory-related events.
For event name constants, see ChannelDirectoryEvent.
Properties
channelDirectory.created()
channelDirectory.created: (
evt:ChannelDirectoryCreatedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | ChannelDirectoryCreatedEvent |
Returns
void
Example
import { rootServer, ChannelDirectoryEvent, ChannelDirectoryCreatedEvent } from "@rootsdk/server-app";
rootServer.community.channelDirectories.on(ChannelDirectoryEvent.ChannelDirectoryCreated, (evt: ChannelDirectoryCreatedEvent) => {
// ...
});
channelDirectory.deleted()
channelDirectory.deleted: (
evt:ChannelDirectoryDeletedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | ChannelDirectoryDeletedEvent |
Returns
void
Example
import { rootServer, ChannelDirectoryEvent, ChannelDirectoryDeletedEvent } from "@rootsdk/server-app";
rootServer.community.channelDirectories.on(ChannelDirectoryEvent.ChannelDirectoryDeleted, (evt: ChannelDirectoryDeletedEvent) => {
// ...
});
channelDirectory.edited()
channelDirectory.edited: (
evt:ChannelDirectoryEditedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | ChannelDirectoryEditedEvent |
Returns
void
Example
import { rootServer, ChannelDirectoryEvent, ChannelDirectoryEditedEvent } from "@rootsdk/server-app";
rootServer.community.channelDirectories.on(ChannelDirectoryEvent.ChannelDirectoryEdited, (evt: ChannelDirectoryEditedEvent) => {
// ...
});
channelDirectory.moved()
channelDirectory.moved: (
evt:ChannelDirectoryMovedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | ChannelDirectoryMovedEvent |
Returns
void
Example
import { rootServer, ChannelDirectoryEvent, ChannelDirectoryMovedEvent } from "@rootsdk/server-app";
rootServer.community.channelDirectories.on(ChannelDirectoryEvent.ChannelDirectoryMoved, (evt: ChannelDirectoryMovedEvent) => {
// ...
});