SLCommands Events
handlerReady
const { Event } = require('sl-commands')
/** ctx is a object containing the client and the handler instances */
new Event(
'handlerReady',
(ctx) => {
console.log(`The handler is ready!`)
}
)import { Event } from 'sl-commands'
/** ctx is a object containing the client and the handler instances */
new Event(
'handlerReady',
(ctx) => {
console.log(`The handler is ready!`)
}
)databaseConnected
const { Event } = require('sl-commands')
/** ctx is a object containing the client and the handler instances */
new Event(
'databaseConnected',
(ctx, connection, state) => {
console.log(`The connection state is "${state}".`)
}
)import { Event } from 'sl-commands'
/** ctx is a object containing the client and the handler instances */
new Event(
'databaseConnected',
(ctx, connection, state) => {
console.log(`The connection state is "${state}".`)
}
)commandException
commandDevsOnly
Last updated