mirror of
https://github.com/danbulant/discord.js
synced 2026-05-30 04:41:11 +00:00
19 lines
515 B
JavaScript
19 lines
515 B
JavaScript
const Action = require('./Action');
|
|
const { Events } = require('../../util/Constants');
|
|
|
|
class GuildEmojiUpdateAction extends Action {
|
|
handle(current, data) {
|
|
const old = current._update(data);
|
|
this.client.emit(Events.GUILD_EMOJI_UPDATE, old, current);
|
|
return { emoji: current };
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Emitted whenever a custom guild emoji is updated.
|
|
* @event Client#emojiUpdate
|
|
* @param {Emoji} oldEmoji The old emoji
|
|
* @param {Emoji} newEmoji The new emoji
|
|
*/
|
|
|
|
module.exports = GuildEmojiUpdateAction;
|