mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Add get status() for Client (#622)
* Add get status() for Client * Fix trailing space
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user