Constructors

  • Parameters

    • url: string
    • Optionaloptions: {
          log?: boolean;
      }
      • Optionallog?: boolean
    • OptionalfetchClient: {
          (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
          (input: string | URL | Request, init?: RequestInit): Promise<Response>;
      }
        • (input, init?): Promise<Response>
        • Parameters

          Returns Promise<Response>

        • (input, init?): Promise<Response>
        • Parameters

          • input: string | URL | Request
          • Optionalinit: RequestInit

          Returns Promise<Response>

    Returns WebDataManager

Properties

admin: APIAdmin = ...
faq: APIFaq = ...
guild: APIGuild = ...
guildPlatform: APIGuildPlatform = ...
guildPlatformAction: APIPlatformAction = ...
linked: APILinked = ...
me: APIMe = ...
options?: {
    log?: boolean;
}
other: APIOther = ...
platform: APIPlatform = ...
premium: APIPremium = ...
r2: APIR2 = ...
sessions: APISessions = ...
teams: APITeams = ...
telemetry: APITelemetry = ...
url: string
user: APIUser = ...

Methods

  • Type Parameters

    • T extends Record<string, unknown>

    Parameters

    • url: string
    • Optionalparams: T

    Returns string

  • Type Parameters

    • O
    • T = unknown

    Parameters

    • data: {
          auth?: string;
          body?: T;
          endpoint: string;
          method:
              | "GET"
              | "POST"
              | "PUT"
              | "DELETE"
              | "PATCH";
      }
      • Optionalauth?: string
      • Optionalbody?: T
      • endpoint: string
      • method:
            | "GET"
            | "POST"
            | "PUT"
            | "DELETE"
            | "PATCH"

    Returns Promise<WebResponse<O>>