These happen when an automod rule is created, deleted or edited.
These are in the same page as discord and provides some data on all events.
Discord doesn’t provide what changed on an update event.
Rule data is imported automatically with the structure below:
flowchart LR
r([rule])
n>name]
i{{id}}
c[creator]
er((exempt_roles))
ec((exempt_channels))
a[actions]
channel_id{{channel_id}}
duration{{duration}}
type>type]
t[trigger]
tt>type]
ml{{mention_limit}}
al((allow_list))
rp((regex_patterns))
kf((keyword_filter))
p[presets]
profanity{profanity}
slurs{slurs}
sexual_content{sexual_content}
click r callback "Root of structure."
click n callback "Name of rule."
click i callback "Id of rule."
click c "https://docs.monni.fyi/en/simpukka/imports/discord/member" "Creator of rule. Same as member import!"
click er "https://docs.monni.fyi/en/simpukka/imports/discord/role" "Roles which are exempt from rule. Iterable with role objects"
click ec "https://docs.monni.fyi/en/simpukka/imports/discord/channel" "Channel which are exempt from rule. Iterable with channel objects"
click a callback "Actions to take when rule is broken. In case its not set will be none."
click channel_id callback "Channel_id for channel where message about rule being broken is sent."
click duration callback "Duration of cooldown for rule break. Zero means disabled."
click type callback "Action type to take. None means no action."
click t callback "Trigger for rule break."
click tt callback "Trigger type"
click ml callback "Max mentions in message before it constitures a trigger. Zero means disabled."
click al callback "List of whitelisted words. Iterable that contains strings."
click rp callback "List of regex patterns for detecting rule breaks. Iterable that contains strings."
click kf callback "List of banned words. Iterable that contains strings."
click p callback "Object containing boolean values on which discord presets are on."
click profanity callback "Boolean value wether profanity filter is enabled"
click slurs callback "Boolean value wether slurs filter is enabled"
click sexual_content callback "Boolean value wether sexual content filter is enabled"
r --- n
r --- i
r --- c
r --- er
r --- ec
r --- a
r --- t
a --- channel_id
a --- duration
a --- type
t --- tt
t --- ml
t --- al
t --- rp
t --- kf
t --- p
p --- profanity
p --- slurs
p --- sexual_content