DiscordAutoModerationRule
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordAutoModerationRule
Interface: DiscordAutoModerationRule
https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object
Properties
actions
actions:
DiscordAutoModerationAction
[]
Actions which will execute whenever a rule is triggered.
Defined in
packages/types/dist/types/discord.d.ts:1968
creator_id
creator_id:
string
The id of the user who created this rule.
Defined in
packages/types/dist/types/discord.d.ts:1960
enabled
enabled:
boolean
Whether the rule is enabled.
Defined in
packages/types/dist/types/discord.d.ts:1970
event_type
event_type:
AutoModerationEventTypes
Indicates in what event context a rule should be checked.
Defined in
packages/types/dist/types/discord.d.ts:1962
exempt_channels
exempt_channels:
string
[]
The channel ids that are whitelisted. Max 50.
Defined in
packages/types/dist/types/discord.d.ts:1974
exempt_roles
exempt_roles:
string
[]
The role ids that are whitelisted. Max 20.
Defined in
packages/types/dist/types/discord.d.ts:1972
guild_id
guild_id:
string
The guild id of the rule
Defined in
packages/types/dist/types/discord.d.ts:1956
id
id:
string
The id of this rule
Defined in
packages/types/dist/types/discord.d.ts:1954
name
name:
string
The name of the rule
Defined in
packages/types/dist/types/discord.d.ts:1958
trigger_metadata
trigger_metadata:
DiscordAutoModerationRuleTriggerMetadata
The metadata used to determine whether a rule should be triggered.
Defined in
packages/types/dist/types/discord.d.ts:1966
trigger_type
trigger_type:
AutoModerationTriggerTypes
The type of trigger for this rule
Defined in
packages/types/dist/types/discord.d.ts:1964