Plugin
The base class for all plugins
Extended by
Constructors
Constructor
new Plugin():
Plugin
Returns
Plugin
Properties
Property | Modifier | Type | Description |
---|---|---|---|
id | abstract | string | An ID that identifies the plugin uniquely between all other used plugins in the Client |
Methods
registerClient()?
optional
registerClient(client
):void
|Promise
<void
>
Registers the client with this plugin
Parameters
Parameter | Type | Description |
---|---|---|
client | Client | The client to register |
Returns
void
| Promise
<void
>
registerRoutes()?
optional
registerRoutes(client
):void
|Promise
<void
>
Registers the routes of this plugin with the client
Parameters
Parameter | Type | Description |
---|---|---|
client | Client | The client to register the routes with |
Returns
void
| Promise
<void
>