Constructor
new WARequest()
Methods
(async) send() → {Promise.<types.WorldAssembly>}
Returns:
- Type
- Promise.<types.WorldAssembly>
setResolution(id) → {this}
Specify a passed resolution to query the info of. Only affects requests
containing the WAShard.RESOLUTION
shard. If this is not set, the
API will use the at-vote resolution, if there is one.
Note that the WAShard.VOTERS
, WAShard.VOTE_TRACK
,
WAShard.DELEGATE_VOTES
, and WAShard.DELEGATE_VOTE_LOG
shards will not return any info on passed resolutions.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | ID of the desired resolution |
Returns:
The request, for chaining
- Type
- this