Re add <Client>.uptime (#579)

This commit is contained in:
Hyper-Coder
2016-09-01 19:03:33 -04:00
committed by Amish Shah
parent 43f1c952c3
commit 168256469e

View File

@@ -193,6 +193,15 @@ class Client extends EventEmitter {
return this.voice.connections;
}
/**
* The uptime for the logged in Client.
* @readonly
* @type {?Number}
*/
get uptime() {
return this.readyTime ? Date.now() - this.readyTime : null;
}
}
module.exports = Client;