Client
Properties
<Client>.user
This is the Client itself's User Properties
<Client>.ping
Returns the Client's Ping!
This is only available on the Master Branch!
<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)
This is only available on the Master Branch!
<Client>.readyTimestamp
How long it has been since the client last entered the READY
state in milliseconds
This is only available on the Master Branch!
<Client>.uptime
How long it has been since the client last entered the READY
state in milliseconds
This is only available on the Master Branch!
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
This Function is only available on the Master Branch!
Last updated
Was this helpful?