mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
19 lines
442 B
JavaScript
19 lines
442 B
JavaScript
const Action = require('./Action');
|
|
|
|
class GuildEmojiUpdateAction extends Action {
|
|
handle(oldEmoji, newEmoji) {
|
|
const emoji = this.client.dataManager.updateEmoji(oldEmoji, newEmoji);
|
|
return {
|
|
emoji,
|
|
};
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 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;
|