feat(Managers): add customizable caching for managers (#6013)

This commit is contained in:
1Computer1
2021-07-03 19:26:26 -04:00
committed by GitHub
parent ec06ba7ad0
commit 8c7cb0eff8
35 changed files with 498 additions and 316 deletions

View File

@@ -22,6 +22,7 @@ class MessageReaction {
* @readonly
*/
Object.defineProperty(this, 'client', { value: client });
/**
* The message that this reaction refers to
* @type {Message}
@@ -38,7 +39,7 @@ class MessageReaction {
* A manager of the users that have given this reaction
* @type {ReactionUserManager}
*/
this.users = new ReactionUserManager(client, undefined, this);
this.users = new ReactionUserManager(this);
this._emoji = new ReactionEmoji(this, data.emoji);