Class: RatelimitError

nationscript/errors~RatelimitError(retry)

An APIError indicating that the legal rate limit was exceeded.

Constructor

new RatelimitError(retry)

Parameters:
Name Type Default Description
retry string | number 30

Number of seconds to wait

Members

retry :number

Number of seconds the API has stated to wait before resuming requests.

Type:
  • number