The member who created the rule, or nothing if they left the guild or are not cached.
AutoMod Rule
typeA rule of Discord's AutoMod: what it looks for (its trigger), when it is checked and what it does. Read the rules of a guild with 'automod rules of %guild%' (requires await), then edit them through their properties; every change is sent to Discord immediately.
Properties
17The id of the user who created the rule.
Whether the rule is currently enforced.
When the rule is checked: on a sent message or on a member profile update.
What the rule looks for (keyword, spam, keyword preset, mention spam, member profile keyword).
The roles whose members are ignored by the rule (20 max).
The channels where the rule does not apply (50 max).
The actions the rule takes when it triggers. Adding a response replaces the one of the same type.
The keywords of a keyword rule.
The regex patterns of a keyword rule.
The words that never trigger a keyword or preset rule.
The keyword presets of a preset rule.
The mention count above which a mention spam rule fires.
Whether a mention spam rule also detects mention raids.
Replaces what the rule looks for. The trigger must be of the same type as the rule's current one.
This property cannot be read: use the keyword, pattern, allow list, presets and mention properties.
The name of a Discord entity: a user's or member's account name, a guild's name, a role/channel name, a bot's define-name. Registered on Skript's native Property.NAME, so the idiomatic "name of %x%" works without colliding. For a member's server nickname or display name, use "effective name".
The guild a Discord entity belongs to: a member's, message's, role's, channel's, webhook's, sticker's, emoji's or scheduled event's guild. Co-owned across every such type, so "guild of %x%" works on any of them (null when the entity is not tied to a guild, e.g. a message from DMs).
Getters
1The automod rule with the given id (requires await).
Returned by
3Syntaxes elsewhere in DiSky that return AutoMod Rule.
Documentation
3Hand-written guides that cover AutoMod Rule.