Skip to content

Commit 24ac27d

Browse files
authoredMay 7, 2023
docs: Fix AutoModerationRuleTriggerTypes link (#9530)
docs: fix `AutoModerationRuleTriggerTypes` link
1 parent 5057f04 commit 24ac27d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎src/managers/AutoModerationRuleManager.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ class AutoModerationRuleManager extends CachedManager {
8585
* @property {AutoModerationRuleEventType} eventType The event type of the auto moderation rule
8686
* @property {AutoModerationRuleTriggerType} triggerType The trigger type of the auto moderation rule
8787
* @property {AutoModerationTriggerMetadataOptions} [triggerMetadata] The trigger metadata of the auto moderation rule
88-
* <info>This property is required if using a `triggerType` of
89-
* {@link AutoModerationRuleTriggerTypes.KEYWORD}, {@link AutoModerationRuleTriggerTypes.KEYWORD_PRESET},
90-
* or {@link AutoModerationRuleTriggerTypes.MENTION_SPAM}.</info>
88+
* <info>This property is required if the following `triggerType`s are used:
89+
* * {@link AutoModerationRuleTriggerType.KEYWORD KEYWORD}
90+
* * {@link AutoModerationRuleTriggerType.KEYWORD_PRESET KEYWORD_PRESET}
91+
* * {@link AutoModerationRuleTriggerType.MENTION_SPAM MENTION_SPAM}
92+
* </info>
9193
* @property {AutoModerationActionOptions[]} actions
9294
* The actions that will execute when the auto moderation rule is triggered
9395
* @property {boolean} [enabled] Whether the auto moderation rule should be enabled

‎src/structures/AutoModerationRule.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class AutoModerationRule extends Base {
7171
* @property {AutoModerationRuleKeywordPresetType[]} presets
7272
* The internally pre-defined wordsets which will be searched for in the content
7373
* @property {string[]} allowList The substrings that will be exempt from triggering
74-
* {@link AutoModerationRuleTriggerTypes.KEYWORD} and {@link AutoModerationRuleTriggerTypes.KEYWORD_PRESET}
74+
* {@link AutoModerationRuleTriggerType.KEYWORD} and {@link AutoModerationRuleTriggerType.KEYWORD_PRESET}
7575
* @property {?number} mentionTotalLimit The total number of role & user mentions allowed per message
7676
* @property {boolean} mentionRaidProtectionEnabled Whether mention raid protection is enabled
7777
*/

0 commit comments

Comments
 (0)
Please sign in to comment.