Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Requests

Manager for sending requests according to the Discord API rate limit

Hierarchy

  • Requests

Index

Constructors

Methods

Constructors

constructor

Methods

send

  • Tells the bucket that is responsible for this request to send this request

    Type parameters

    • TReturn

    • T: keyof typeof Endpoints

    Parameters

    • route: T

      The route this request should go to

    • routeArgs: RouteArgs

      The arguments this route requires

    • method: HttpMethod

      The http method for this request

    • Optional params: Params

      The params / body for this request

    • Optional files: RequestFile[]

      The files sent in this request

    Returns Promise<TReturn>

Generated using TypeDoc