Events
Discord.Short comes with special events. These include:
MONGOCONNECT- When bot connects to MongoDBIDLEPING- Whenever the Heroku anti-idle pings the serverANTIIDLEREADY- When the anti-idle dummy server is online
you can add a function to an event like this:
ds.on('EVENT', function() {
// callback
});you can also add Discord.js events by using the bot object:
ds.bot.on('EVENT', function() {
// callback
});Last updated
Was this helpful?