Options
All
  • Public
  • Public/Protected
  • All
Menu

The main class.

Hierarchy

  • Advice

Constructors

constructor

Returns Advice

Methods

Private _handleRequest

  • _handleRequest(t: "string" | "raw"): Promise<any>

Parameters

  • t: "string" | "raw"

Returns Promise<any>

Static getAdvice

  • getAdvice(): Promise<string>

Get a random advice!

Returns Promise<string>

The advice.

Static getRaw

  • getRaw(): Promise<Record<string, unknown>>

Get the raw data!

Returns Promise<Record<string, unknown>>

The raw data.

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.