mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 20:30:38 +00:00
18 lines
553 B
JavaScript
18 lines
553 B
JavaScript
const Action = require('./Action');
|
|
const { Events } = require('../../util/Constants');
|
|
|
|
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);
|
|
return { emoji: current };
|
|
}
|
|
}
|
|
|
|
module.exports = GuildEmojiUpdateAction;
|