mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Make Client.emojis suck less
This commit is contained in:
@@ -189,7 +189,9 @@ class Client extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
get emojis() {
|
get emojis() {
|
||||||
const emojis = new Collection();
|
const emojis = new Collection();
|
||||||
this.guilds.map(g => g.emojis.map(e => emojis.set(e.id, e)));
|
for (const guild of this.guilds.values()) {
|
||||||
|
for (const emoji of guild.emojis) emojis.set(emoji.id, emoji);
|
||||||
|
}
|
||||||
return emojis;
|
return emojis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user