mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
* all the emoji stuff
* fix things for hydra 😘
* feck i need to stop committing on github
* update docs again
* Butts
18 lines
404 B
JavaScript
18 lines
404 B
JavaScript
const Action = require('./Action');
|
|
|
|
class EmojiCreateAction extends Action {
|
|
handle(data, guild) {
|
|
const client = this.client;
|
|
const emoji = client.dataManager.newEmoji(data, guild);
|
|
return {
|
|
emoji,
|
|
};
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Emitted whenever an emoji is created
|
|
* @event Client#guildEmojiCreate
|
|
* @param {Emoji} emoji The emoji that was created.
|
|
*/
|
|
module.exports = EmojiCreateAction;
|