From bc5e2950d065fd7c65259d050063299fc4468136 Mon Sep 17 00:00:00 2001 From: Sugden <28943913+NotSugden@users.noreply.github.com> Date: Sun, 16 Feb 2020 18:24:12 +0000 Subject: [PATCH] fix(ReactionManager): update message if partial (#3789) * update message after fetching if it is partial * suggested changes Co-Authored-By: SpaceEEC Co-authored-by: SpaceEEC --- src/managers/ReactionManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/ReactionManager.js b/src/managers/ReactionManager.js index a9f84709c..31a98fdfc 100644 --- a/src/managers/ReactionManager.js +++ b/src/managers/ReactionManager.js @@ -73,6 +73,7 @@ class ReactionManager extends BaseManager { const existing = this.cache.get(id); if (!this._partial(reactionEmoji)) return existing; const data = await this.client.api.channels(this.message.channel.id).messages(this.message.id).get(); + if (this.message.partial) this.message._patch(data); if (!data.reactions || !data.reactions.some(r => (r.emoji.id || r.emoji.name) === id)) { reactionEmoji.reaction._patch({ count: 0 }); this.message.reactions.cache.delete(id);