fix(MessageReaction): Cache myself when MessageReaction#me is true. (#6956)

Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com>
This commit is contained in:
GrapeColor
2021-11-12 03:21:45 +09:00
committed by GitHub
parent 8e881d2b96
commit b001e194f1

View File

@@ -34,7 +34,7 @@ class MessageReaction {
* A manager of the users that have given this reaction
* @type {ReactionUserManager}
*/
this.users = new ReactionUserManager(this);
this.users = new ReactionUserManager(this, this.me ? [client.user] : []);
this._emoji = new ReactionEmoji(this, data.emoji);