Optional
allowWhether to allow this request to use the cache or ongoing requests if available
Optional
apiThe API key to use in this request
Optional
cacheThe amount of time the request should be cached for, overwrites the defaults specified in the config
Optional
forcefalse
As of v3.1.0, this option has no effect.
Optional
forceUUIDLookupWhether to force a UUID lookup before the player request. This can help reduce some errors caused by name changes. Ignored if player is a UUID
false
As of v3.1.0, this option has no effect.
Optional
ignoreWhether to ignore version errors
false
Optional
multipleA function that will be executed with each of the choices as a parameter. It may return a Promise of a boolean. In that case, the selector will be executed for all values simultaneously. And the passing element with the lowest index will be selected. If the selector returns false for all choices, the error is thrown regardless
The current choice
The index of the current choice
The array of all choices
True, if the given choice should be selected
A player UUID or name; case-insensitive
Optional
priorityWhether this request should be put to the front of the queue, executing before any non-priority requests are handled
false
Optional
retriesThe amount of times to retry the request on error
Optional
timeoutThe amount of milliseconds a until the request should be rejected
Generated using TypeDoc
The options for a player API request