Class: RMBPostCommand

nationscript/requests/command~RMBPostCommand()

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

Currently undocumented in the official API docs.

Constructor

new RMBPostCommand()

Additionally mandates the region and text arguments and sets the c argument.

Methods

setRegion(region) → {this}

Define the region on whose RMB the post should be lodged.

Parameters:
Name Type Description
region string

Name of the target region

Returns:

The command, for chaining

Type
this

setText(text) → {this}

Set the body text of the post to lodge.

Parameters:
Name Type Description
text string

Text to post

Returns:

The command, for chaining

Type
this