Function toggleRequestQueue

  • Toggle the request queue. The request queue enables all requests to automatically respect rate limits. It's important to note that this only handles rate limit errors, nothing else. The request queue does NOT keep the current process running indefinitely.

    Parameters

    • enabled: boolean

      If the queue should be enabled or not.

    • OptionalretryEnabled: boolean

      If true, rate limit errors will automatically be retried. Default is false.

    Returns void