Add get status() for Client (#622)

* Add get status() for Client

* Fix trailing space
This commit is contained in:
Tyler
2016-09-05 01:52:15 -05:00
committed by Amish Shah
parent bd113eef06
commit 6dfe160c52

View File

@@ -219,6 +219,15 @@ class Client extends EventEmitter {
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
return emojis;
}
/**
* The status for the logged in Client.
* @readonly
* @type {?number}
*/
get status() {
return this.ws.status;
}
}
module.exports = Client;