Class: DispatchEditCommand

nationscript/requests/command~DispatchEditCommand()

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

Constructor

new DispatchEditCommand()

Additionally mandates the dispatchid argument and sets the dispatch argument.

Methods

targetDispatch(id) → {this}

Define the dispatch that is to be edited.

Parameters:
Name Type Description
id number

Target dispatch ID

Returns:

The command, for chaining

Type
this