mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Add functionality for GuildEmoji events
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const Action = require('./Action');
|
||||
|
||||
class EmojiDeleteAction extends Action {
|
||||
handle(data) {
|
||||
class GuildEmojiDeleteAction extends Action {
|
||||
handle(emoji) {
|
||||
const client = this.client;
|
||||
client.dataManager.killEmoji(data);
|
||||
client.dataManager.killEmoji(emoji);
|
||||
return {
|
||||
data,
|
||||
emoji,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -15,4 +15,4 @@ class EmojiDeleteAction extends Action {
|
||||
* @event Client#guildEmojiDelete
|
||||
* @param {Emoji} emoji The emoji that was deleted.
|
||||
*/
|
||||
module.exports = EmojiDeleteAction;
|
||||
module.exports = GuildEmojiDeleteAction;
|
||||
|
||||
Reference in New Issue
Block a user