CommandDataPlugin
This plugin is a basic plugin that allows you to get the command data from the client over HTTP. The JSON array provided here is the same as the one you would send to Discord, allowing you to build your own command deployment setup.
Extends
Constructors
Constructor
new CommandDataPlugin():
CommandDataPlugin
Returns
CommandDataPlugin
Inherited from
Properties
Property | Modifier | Type | Default value | Description | Overrides |
---|---|---|---|---|---|
client? | public | Client | undefined | - | - |
id | readonly | "command-data" | "command-data" | An ID that identifies the plugin uniquely between all other used plugins in the Client | Plugin .id |
Methods
handleCommandDataRequest()
Returns
handleFullCommandDataRequest()
Returns
registerClient()
registerClient(
client
):void
Registers the client with this plugin
Parameters
Parameter | Type | Description |
---|---|---|
client | Client | The client to register |
Returns
void
Overrides
registerRoutes()
registerRoutes(
client
):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