Manages API methods for auto moderation rules and stores their cache.
The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a new auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
options | AutoModerationRuleCreateOptions | No | Options for creating the auto moderation rule |
Deletes an auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
autoModerationRule | AutoModerationRuleResolvable | No | The auto moderation rule to delete |
reason | string | Yes | The reason for deleting the auto moderation rule |
Edits an auto moderation rule.
Name | Type | Optional | Description |
---|---|---|---|
autoModerationRule | AutoModerationRuleResolvable | No | The auto moderation rule to edit |
options | AutoModerationRuleEditOptions | No | Options for editing the auto moderation rule |
Fetches auto moderation rules from Discord.
Name | Type | Optional | Description |
---|---|---|---|
options | AutoModerationRuleResolvable | FetchAutoModerationRuleOptions | No | Options for fetching auto moderation rule(s) |
Resolves a data entry to a data Object.
Returns
An instance from this ManagerName | Type | Optional | Description |
---|---|---|---|
idOrInstance | Holds | No | The id or instance of something in this Manager |
Resolves a data entry to an instance id.
Returns
Name | Type | Optional | Description |
---|---|---|---|
idOrInstance | K | Holds | No | The id or instance of something in this Manager |