The SLCommands class comes with some methods that can be useful for your bot.
It is recommended to read the rest of the documentation and know how to use SLCommands before looking into these methods.
This code is for demonstration purposes only. Do not copy/paste this, it will not work.
classSLHandler {/** * Add bot developers to the handler (you can add it as a property when setting up the handler instead) */publicaddBotDevs(...ids:string[]):this/** * Add test servers to the handler (you can add it as a property when setting up the handler instead) */publicaddTestServers(...ids:string[]):this/** * Wheter the provided database connection (if there is one) is already connected */publicisDBConnected():boolean/** Gets the MongoDB connection */publicgetmongoConnection():Connection|null/** The MessageHandler, this is used for built-in replies */publicgetmessageHandler():MessageHandler/** The provided test servers */publicgettestServersIds():string[]/** The provided bot developers */publicgetbotDevsIds():string[]/** If useDefaultMessages is enabled */publicgetuseDefaultMessages():boolean/** If global testOnly is enabled */publicgettestOnly():boolean/** If showWarns is enabled */publicgetshowWarns():boolean/** The default language for bot messages */publicgetlanguage():SLLanguages/** The DiscordJS client */publicgetclient():Client}