Events
Loading
- Guide: /guide/events
Event File
A event file uses the event
helper function and exports it. For example:
import { event } from 'jellycommands';
export default event({ name: 'ready',
run: () => { console.log('Online'); },});
Options
name
- Type:
Event
This is the name of an event, for example ready
or messageCreate
once
- Type:
boolean
When true this event handler will only be ran once
disabled
- Type:
boolean
When true JellyCommands will ignore this command.