mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
Re add <Client>.uptime (#579)
This commit is contained in:
parent
43f1c952c3
commit
168256469e
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue