mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Make Client.emojis suck less
This commit is contained in:
parent
973dbe8266
commit
b8e659d544
1 changed files with 3 additions and 1 deletions
|
|
@ -189,7 +189,9 @@ class Client extends EventEmitter {
|
|||
*/
|
||||
get emojis() {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue