Skip to main content

Custom Prefixes

The bot prefix is declared in the client constructor, this option supports a string or a function, this is useful for making custom prefixes per server.

Example

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

const bot = new Erine({
intents: string[] | GatewayIntentBits[]
owners: string[]
prefix: async function(context) {
// do something...
}
});

bot.login(string);