The type ID of the event this event subscription data is for.
The JavaScript code of the event subscription's callback function.
OptionalenabledWhether or not the event subscription is enabled.
ReadonlyeventThe type ID of the event this subscription is for.
OptionalmetadataOptional metadata for the event subscription.
Additional metadata for the event subscription.
OptionaldisplayIcon?: stringThe display icon of the event subscription.
Should be a texture path.
OptionaldisplayName?: stringThe display name of the event subscription.
OptionallastModified?: numberThe last time the event subscription was modified.
ReadonlysaveIDThe 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.