Skip to main content

Plugins

Erine has plugins available to save you some work when creating commands.

To handle plugins errors, use the error event.

Example

const { Command, Maker, Plugins } = require('erine');

class Data extends Maker {
@Command({ name: "data" })
@Plugins.isOwner // owner ID inside constructor options in client needed.
async data(context) {
// Code here
}
}

module.exports = { data: Data };