Add more @readonly and clean up some stuff

This commit is contained in:
Schuyler Cebulskie
2016-09-27 20:07:33 -04:00
parent 1a3f5ca6a9
commit 973dbe8266
11 changed files with 31 additions and 21 deletions

View File

@@ -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;