Skip to content

Commit

Permalink
docs(AutoModerationRuleManager): Describe cache (#8848)
Browse files Browse the repository at this point in the history
docs(AutoModerationRuleManager): describe cache
  • Loading branch information
Jiralite authored Nov 25, 2022
1 parent 7ae0c52 commit d275480
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 d275480

Please sign in to comment.