Add functionality for GuildEmoji events

This commit is contained in:
Amish Shah
2016-12-26 19:21:00 +00:00
parent 2410fdf8d2
commit cd657be8be
10 changed files with 80 additions and 40 deletions

View File

@@ -1,9 +1,9 @@
const Action = require('./Action');
class EmojiCreateAction extends Action {
handle(data, guild) {
class GuildEmojiCreateAction extends Action {
handle(guild, createdEmoji) {
const client = this.client;
const emoji = client.dataManager.newEmoji(data, guild);
const emoji = client.dataManager.newEmoji(createdEmoji, guild);
return {
emoji,
};
@@ -15,4 +15,4 @@ class EmojiCreateAction extends Action {
* @event Client#guildEmojiCreate
* @param {Emoji} emoji The emoji that was created.
*/
module.exports = EmojiCreateAction;
module.exports = GuildEmojiCreateAction;