Class: ResolutionAdoptionCommand

nationscript/requests/command~ResolutionAdoptionCommand()

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

Currently undocumented in the official API docs.

Constructor

new ResolutionAdoptionCommand()

Additionally mandates the resolution argument and sets the c argument.

Methods

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

Returns:
Type
Promise.<types.IssueEffect>

setResolution(id) → {this}

Define the GA resolution that is to be adopted.

Parameters:
Name Type Description
id number

ID of the target resolution

Returns:

The command, for chaining

Type
this