Client

Properties

<Client>.user

This is the Client itself's User Properties

<Client>.ping

Returns the Client's Ping!

<Client>.readyAt

Time at which the client was last regarded as being in the READY state (each time the client disconnects and successfully reconnects, this will be overwritten)

<Client>.readyTimestamp

How long it has been since the client last entered the READY state in milliseconds

<Client>.uptime

How long it has been since the client last entered the READY state in milliseconds

Constructor

Param

Required

Default

Type

token

true

null

String

apiversion

false

7

Number

Methods

<Client>.connect()

Connect the Bot to Discord through Websockets.

<Client>.disconnect()

Disconnects the Bot to Discord and exits the process

Last updated

Was this helpful?