Skip to content

Latest commit

 

History

History
72 lines (43 loc) · 1.62 KB

Client.md

File metadata and controls

72 lines (43 loc) · 1.62 KB

fuwa.js / Exports / Client

Module: Client

Table of contents

Classes

Interfaces

Type aliases

Functions

Type aliases

statusType

Ƭ statusType: "playing" | "listening" | "streaming" | "competing"

Defined in

src/lib/Client.ts:34

Functions

next

Const next(req, res, prefix, arr, i?, secondArr?): () => void

The Client Class

description The client class is the main starting point of your discord bot.

const fuwa = require('fuwa.js'); // Import Fuwa library
const client = new fuwa.Client('?'); // Create and initialize a Client

Parameters

Name Type Default value
req Request undefined
res Response undefined
prefix string undefined
arr { cb: CommandCallback }[] undefined
i number 0
secondArr? { cb: CommandCallback }[] undefined

Returns

fn

▸ (): void

Returns

void

Defined in

src/lib/Client.ts:161