mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add more @readonly and clean up some stuff
This commit is contained in:
@@ -157,8 +157,8 @@ class Client extends EventEmitter {
|
||||
|
||||
/**
|
||||
* The status for the logged in Client.
|
||||
* @readonly
|
||||
* @type {?number}
|
||||
* @readonly
|
||||
*/
|
||||
get status() {
|
||||
return this.ws.status;
|
||||
@@ -166,8 +166,8 @@ class Client extends EventEmitter {
|
||||
|
||||
/**
|
||||
* The uptime for the logged in Client.
|
||||
* @readonly
|
||||
* @type {?number}
|
||||
* @readonly
|
||||
*/
|
||||
get uptime() {
|
||||
return this.readyTime ? Date.now() - this.readyTime : null;
|
||||
@@ -175,8 +175,8 @@ class Client extends EventEmitter {
|
||||
|
||||
/**
|
||||
* Returns a Collection, mapping Guild ID to Voice Connections.
|
||||
* @readonly
|
||||
* @type {Collection<string, VoiceConnection>}
|
||||
* @readonly
|
||||
*/
|
||||
get voiceConnections() {
|
||||
return this.voice.connections;
|
||||
|
||||
Reference in New Issue
Block a user