Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

The Base CLient used for asyncdagpi

param token

Your dagpi token

Hierarchy

  • Client

Index

Constructors

  • new Client(token: string): Client

Properties

http: AxiosInstance
ratelimits: RatelimitInfo
token: string
version: string

Methods

  • fact(): Promise<fact>
  • Private function to make Http request

    Parameters

    • path: string

      route to be taken

    • params: image_props

      additional prarams

    Returns Promise<image>

    [description]

  • joke(): Promise<joke>
  • logo(): Promise<logo>
  • request<T>(url: string): Promise<T>
  • Request

    Type parameters

    • T

    Parameters

    • url: string

    Returns Promise<T>

  • validate(url: string): boolean
  • Validate a Url against regex

    Parameters

    • url: string

      url supplied

    Returns boolean

    wether valid or not

  • waifu(): Promise<any>
  • wtp(): Promise<wtp>

Generated using TypeDoc