mirror of
https://github.com/danbulant/discord.js
synced 2026-06-04 07:12:50 +00:00
remove pointless function from GuildEmojisUpdate (#2256)
This commit is contained in:
parent
3038d4b2c7
commit
3d32dea5e1
1 changed files with 1 additions and 7 deletions
|
|
@ -1,17 +1,11 @@
|
|||
const Action = require('./Action');
|
||||
|
||||
function mappify(iterable) {
|
||||
const map = new Map();
|
||||
for (const x of iterable) map.set(...x);
|
||||
return map;
|
||||
}
|
||||
|
||||
class GuildEmojisUpdateAction extends Action {
|
||||
handle(data) {
|
||||
const guild = this.client.guilds.get(data.guild_id);
|
||||
if (!guild || !guild.emojis) return;
|
||||
|
||||
const deletions = mappify(guild.emojis.entries());
|
||||
const deletions = new Map(guild.emojis);
|
||||
|
||||
for (const emoji of data.emojis) {
|
||||
// Determine type of emoji event
|
||||
|
|
|
|||
Loading…
Reference in a new issue