Improve docs

This commit is contained in:
Crawl
2017-04-24 16:29:29 +02:00
parent 401822a094
commit 53eda09f72
16 changed files with 34 additions and 25 deletions

View File

@@ -15,4 +15,5 @@ class GuildEmojiCreateAction extends Action {
* @event Client#emojiCreate
* @param {Emoji} emoji The emoji that was created.
*/
module.exports = GuildEmojiCreateAction;

View File

@@ -15,4 +15,5 @@ class GuildEmojiDeleteAction extends Action {
* @event Client#emojiDelete
* @param {Emoji} emoji The emoji that was deleted.
*/
module.exports = GuildEmojiDeleteAction;

View File

@@ -15,4 +15,5 @@ class GuildEmojiUpdateAction extends Action {
* @param {Emoji} oldEmoji The old emoji
* @param {Emoji} newEmoji The new emoji
*/
module.exports = GuildEmojiUpdateAction;

View File

@@ -34,10 +34,12 @@ class MessageReactionAdd extends Action {
};
}
}
/**
* Emitted whenever a reaction is added to a message.
* @event Client#messageReactionAdd
* @param {MessageReaction} messageReaction The reaction object.
* @param {User} user The user that applied the emoji or reaction emoji.
*/
module.exports = MessageReactionAdd;

View File

@@ -34,10 +34,12 @@ class MessageReactionRemove extends Action {
};
}
}
/**
* Emitted whenever a reaction is removed from a message.
* @event Client#messageReactionRemove
* @param {MessageReaction} messageReaction The reaction object.
* @param {User} user The user that removed the emoji or reaction emoji.
*/
module.exports = MessageReactionRemove;

View File

@@ -17,9 +17,11 @@ class MessageReactionRemoveAll extends Action {
};
}
}
/**
* Emitted whenever all reactions are removed from a message.
* @event Client#messageReactionRemoveAll
* @param {Message} message The message the reactions were removed from.
*/
module.exports = MessageReactionRemoveAll;