Constructor
new DispatchAddCommand()
Additionally mandate
s the title
, text
,
category
, and subcategory
arguments and sets the c
argument.
Methods
setCategory(category, subcategory) → {this}
Set the DispatchCategory
and DispatchSubcategory
that
the dispatch should be put in.
Parameters:
Name | Type | Description |
---|---|---|
category |
string | Desired category |
subcategory |
string | Desired subcategory |
Returns:
The command, for chaining
- Type
- this
setContent(content) → {this}
Set the text content that the dispatch should have.
Parameters:
Name | Type | Description |
---|---|---|
content |
string | The desired body text |
Returns:
The command, for chaining
- Type
- this
setTitle(title) → {this}
Set the title that the dispatch should bear.
Parameters:
Name | Type | Description |
---|---|---|
title |
string | The desired title |
Returns:
The command, for chaining
- Type
- this