Function promisifyEndpointRateLimit

  • A wrapper for promisifyRateLimit that uses an endpoint's rate limit as the first argument. Note that if rate limit data for said endpoint isn't available then it will instantly resolve.

    Parameters

    • endpoint: Endpoint

      Endpoint to promisify the rate limit of.

    Returns Promise<void>