Skip to main content

Error

Any context error will be emitted through the error event.

Example

const { Errors } = require('erine');

const event = {
name: 'error',
async code(client, err) {
if(err instanceof Errors.CommandNotFound) {
// do something...
}
}
}

module.exports = { data: event }