The type ID of the event this event subscription data is for.
The JavaScript code of the event subscription's callback function.
Optional
enabledWhether or not the event subscription is enabled.
Readonly
eventThe type ID of the event this subscription is for.
Optional
metadataOptional metadata for the event subscription.
Additional metadata for the event subscription.
Optional
displayIcon?: stringThe display icon of the event subscription.
Should be a texture path.
Optional
displayName?: stringThe display name of the event subscription.
Optional
lastModified?: numberThe last time the event subscription was modified.
Readonly
saveIDThe unique ID of the event subscription.
Should be in the following format:
const creationTime: number = Date.now(); // The time the event subscription was created.
const number1: number = Math.round(Math.random() * 100000); // Random integer between 0 and 100,000.
const number2: number = Math.round(Math.random() * 100000); // Random integer between 0 and 100,000.
const saveID: string = `EventSubscription:${creationTime}_${number1}_${number2}`
The data for an event subscription.