DiscordAutoModerationRule
Documentation / @discordeno/bot / DiscordAutoModerationRule
Interface: DiscordAutoModerationRule
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:3
Properties
actions
actions:
DiscordAutoModerationAction
[]
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:19
Actions which will execute whenever a rule is triggered.
creator_id
creator_id:
string
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:11
The id of the user who created this rule.
enabled
enabled:
boolean
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:21
Whether the rule is enabled.
event_type
event_type:
AutoModerationEventTypes
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:13
Indicates in what event context a rule should be checked.
exempt_channels
exempt_channels:
string
[]
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:25
The channel ids that are whitelisted. Max 50.
exempt_roles
exempt_roles:
string
[]
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:23
The role ids that are whitelisted. Max 20.
guild_id
guild_id:
string
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:7
The guild id of the rule
id
id:
string
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:5
The id of this rule
name
name:
string
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:9
The name of the rule
trigger_metadata
trigger_metadata:
DiscordAutoModerationRuleTriggerMetadata
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:17
The metadata used to determine whether a rule should be triggered.
trigger_type
trigger_type:
AutoModerationTriggerTypes
Defined in: packages/types/dist/types/discord/autoModeration.d.ts:15
The type of trigger for this rule