discord.js-selfbot-v13/src/client/actions/GuildEmojiUpdate.js

21 lines
568 B
JavaScript
Raw Normal View History

2022-03-19 10:37:45 +00:00
'use strict';
const Action = require('./Action');
const { Events } = require('../../util/Constants');
2022-03-19 10:37:45 +00:00
class GuildEmojiUpdateAction extends Action {
handle(current, data) {
const old = current._update(data);
/**
* Emitted whenever a custom emoji is updated in a guild.
* @event Client#emojiUpdate
* @param {GuildEmoji} oldEmoji The old emoji
* @param {GuildEmoji} newEmoji The new emoji
*/
this.client.emit(Events.GUILD_EMOJI_UPDATE, old, current);
2022-03-19 10:37:45 +00:00
return { emoji: current };
}
}
module.exports = GuildEmojiUpdateAction;