Module: nationscript/requests/command

Internal module providing request builder classes for executing nation private commands.

Classes

CommandRequest
DispatchAddCommand
DispatchCommand
DispatchDeleteCommand
DispatchEditCommand
GiftCardCommand
IssueCommand
RMBPostCommand
TwoStepCommand

Methods

(inner) translateSubcategory(category, subcategory) → {number}

Translates a given DispatchCategory and DispatchSubcategory from their textual forms to the corresponding numerical subcategory ID. The category ID can be extracted from this via (floored) division by 100.

Parameters:
Name Type Description
category string

Top-level category to translate

subcategory string

Subcategory to translate

Returns:

Translated subcategory code

Type
number