Skip to content

Commit

Permalink
docs(AutoModerationRuleManager): describe cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite authored and iCrawl committed Nov 25, 2022
1 parent 7ae0c52 commit aa17bc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/discord.js/src/managers/AutoModerationRuleManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class AutoModerationRuleManager extends CachedManager {
this.guild = guild;
}

/**
* The cache of this manager
* @type {Collection<Snowflake, AutoModerationRule>}
* @name AutoModerationRuleManager#cache
*/

_add(data, cache) {
return super._add(data, cache, { extras: [this.guild] });
}
Expand Down

0 comments on commit aa17bc7

Please sign in to comment.