Clean up reactions, add remove all reactions (#890)

* Clean up reactions, add remove all reactions

* Reorganize reactions

* Re-add Gawdl3y's precious little inline

* Update Message.js
This commit is contained in:
Programmix
2016-11-12 23:29:26 -08:00
committed by Schuyler Cebulskie
parent a359f344d8
commit 5ed8098af8
9 changed files with 97 additions and 26 deletions

View File

@@ -47,6 +47,7 @@ class WebSocketPacketManager {
this.register(Constants.WSEvents.RELATIONSHIP_REMOVE, 'RelationshipRemove');
this.register(Constants.WSEvents.MESSAGE_REACTION_ADD, 'MessageReactionAdd');
this.register(Constants.WSEvents.MESSAGE_REACTION_REMOVE, 'MessageReactionRemove');
this.register(Constants.WSEvents.MESSAGE_REACTION_REMOVE_ALL, 'MessageReactionRemoveAll');
}
get client() {

View File

@@ -0,0 +1,11 @@
const AbstractHandler = require('./AbstractHandler');
class MessageReactionRemoveAll extends AbstractHandler {
handle(packet) {
const client = this.packetManager.client;
const data = packet.d;
client.actions.MessageReactionRemoveAll.handle(data);
}
}
module.exports = MessageReactionRemoveAll;