fix(Partials): Client#event:messageUpdate(oldMessage) and MessageReactionAdd on guild channels (#3250)

* ref: add getPayload and use for other get* methods

* return existing data.*

* use Action.getUser()
This commit is contained in:
izexi
2019-05-07 20:56:39 +01:00
committed by Amish Shah
parent 3d4513268d
commit 0dd3ed72ef
3 changed files with 39 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ class MessageReactionAdd extends Action {
handle(data) {
if (!data.emoji) return false;
const user = data.user || this.client.users.get(data.user_id);
const user = this.getUser(data);
if (!user) return false;
// Verify channel