setup

abstract suspend fun setup()

Override this in your subclass and use it to register your commands and event handlers.

This function simply allows you to register commands and event handlers in the context of a suspended function, which is required in order to make use of some other APIs. As a result, we recommend you make use of this in all your extensions, instead of init {} blocks.

This function is called on first extension load, and whenever it's reloaded after that.