SparkEvent implements EventOptions<Key>
The event class. Use this class to create new events in your bot.
new SparkEvent(options)
Parameter | Type | Optional | Description |
---|---|---|---|
options | EventOptions<Key> | ❌ | - |
Properties
public name: Key
The name of the event. (Such as
public once: boolean
Whether the event should run once.
public run: EventRunner<Key>
The run function for the event.