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.
Example
Example
Example
Name | Type | Optional | Description |
---|---|---|---|
options | AutoModerationRuleResolvable | FetchAutoModerationRuleOptions | No | Options for fetching auto moderation rule(s) |
Resolves an AutoModerationRuleResolvable to an AutoModerationRule object.
Name | Type | Optional | Description |
---|---|---|---|
autoModerationRule | AutoModerationRuleResolvable | No | The AutoModerationRule resolvable to resolve |
Resolves an AutoModerationRuleResolvable to a AutoModerationRule id.
Name | Type | Optional | Description |
---|---|---|---|
autoModerationRule | AutoModerationRuleResolvable | No | The AutoModerationRule resolvable to resolve |