Class: IssueCommand

nationscript/requests/command~IssueCommand()

Request subclass for building requests to the commands endpoint of the API, specifically for executing the c=issue nation private command.

Constructor

new IssueCommand()

Additionally mandates the issue and option arguments and sets the c argument.

Methods

(async) send() → {Promise.<types.IssueEffect>}

Returns:
Type
Promise.<types.IssueEffect>

setIssue(issue) → {this}

Define the issue to answer via this command.

Parameters:
Name Type Description
issue number

ID of the issue to address

Returns:

The command, for chaining

Type
this

setOption(option) → {this}

Set the option that will be chosen on the issue.

Parameters:
Name Type Description
option number

ID of the option to choose; -1 to dismiss

Returns:

The command, for chaining

Type
this