Constructor
(abstract) new AbstractMiddleware()
Creates a new AbstractMiddleware
Members
(abstract) name :String
The name of the middleware
Type:
- String
Methods
destroy() → {Promise}
Destroys/unloads the middleware
Returns:
Resolves with no value
- Type
- Promise
load(bot) → {Promise}
Loads the middleware
Parameters:
Name | Type | Description |
---|---|---|
bot |
Bot |
The main client |
Returns:
Resolves with this
- Type
- Promise