Class: DispatchDeleteCommand

nationscript/requests/command~DispatchDeleteCommand()

Request subclass for building requests to the commands endpoint of the API, specifically for executing the c=dispatch nation private command with the dispatch=remove sub-command.

Constructor

new DispatchDeleteCommand()

Additionally mandates the dispatchid argument and sets the dispatch argument.

Methods

targetDispatch(id) → {this}

Define the dispatch that should be deleted

Parameters:
Name Type Description
id number

Target dispatch ID

Returns:

The command, for chaining

Type
this