Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RateLimitBucket

Hierarchy

  • RateLimitBucket

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

remaining

remaining: number | undefined

The number of remaining requests this bucket has until the next reset {@link reset}

Methods

send

  • Creates a new API request and sends it if the bucket is capable of doing so

    Type parameters

    • T

    Parameters

    • endpoint: string

      The request endpoint

    • params: Params

      The request params / body

    • Optional files: RequestFile[]

      The files sent in this request

    Returns Promise<T>

Generated using TypeDoc