AutoModerationRuleManager

export class AutoModerationRuleManager extends CachedManager<
Snowflake,
AutoModerationRule,
AutoModerationRuleResolvable
>
export class AutoModerationRuleManager extends CachedManager<
Snowflake,
AutoModerationRule,
AutoModerationRuleResolvable
>
Manages API methods for auto moderation rules and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild this manager belongs to.
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(options):Promise<AutoModerationRule>
Creates a new auto moderation rule.
NameTypeOptionalDescription
optionsAutoModerationRuleCreateOptionsNoOptions for creating the auto moderation rule
delete(autoModerationRule, reason?):Promise<void>
Deletes an auto moderation rule.
NameTypeOptionalDescription
autoModerationRuleAutoModerationRuleResolvableNoThe auto moderation rule to delete
reasonstringYesThe reason for deleting the auto moderation rule
edit(autoModerationRule, options):Promise<AutoModerationRule>
Edits an auto moderation rule.
NameTypeOptionalDescription
autoModerationRuleAutoModerationRuleResolvableNoThe auto moderation rule to edit
optionsAutoModerationRuleEditOptionsNoOptions for editing the auto moderation rule
fetch(options):Promise<AutoModerationRule>
Fetches auto moderation rules from Discord.
NameTypeOptionalDescription
optionsAutoModerationRuleResolvable | FetchAutoModerationRuleOptionsNoOptions for fetching auto moderation rule(s)
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
valueOf():Collection<K, Holds>