Add client.emojis and fix eslint

This commit is contained in:
Amish Shah
2016-09-04 17:54:26 +01:00
parent db9d5b8110
commit bcab8805af
3 changed files with 13 additions and 2 deletions

View File

@@ -208,6 +208,17 @@ class Client extends EventEmitter {
get uptime() {
return this.readyTime ? Date.now() - this.readyTime : null;
}
/**
* The emojis that the client can use. Mapped by emoji ID.
* @type {Collection<string, Emoji>}
* @readonly
*/
get emojis() {
const emojis = new Collection();
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
return emojis;
}
}
module.exports = Client;