DiSky DiSky v5.0.0-b1

AutoMod Rule

type

A 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.

18 / 18

Properties

17
propertyMembersince 5.0.0-a2
[the] creator of %automodrule%
%automodrule%'s creator

The member who created the rule, or nothing if they left the guild or are not cached.

mentioned inManaging rules
Helpful?
propertyTextsince 5.0.0-a2
[the] creator id of %automodrule%
%automodrule%'s creator id

The id of the user who created the rule.

mentioned inManaging rules
Helpful?
propertyBooleanawait since 5.0.0-a2
[the] enabled of %automodrule%
%automodrule%'s enabled

Whether the rule is currently enforced.

change modes set
mentioned inManaging rules
Helpful?
propertyAutoModEventTypesince 5.0.0-a2
[the] automod event type of %automodrule%
%automodrule%'s automod event type

When the rule is checked: on a sent message or on a member profile update.

mentioned inManaging rules
Helpful?
propertyAutoModTriggerTypesince 5.0.0-a2
[the] automod trigger type of %automodrule%
%automodrule%'s automod trigger type

What the rule looks for (keyword, spam, keyword preset, mention spam, member profile keyword).

mentioned inManaging rules
Helpful?
propertylist of Guildchannelawait since 5.0.0-a2
[the] exempt channels of %automodrule%
%automodrule%'s exempt channels

The channels where the rule does not apply (50 max).

change modes setaddremovedelete
mentioned inManaging rules
Helpful?
propertylist of AutoMod Responseawait since 5.0.0-a2
[the] automod responses of %automodrule%
%automodrule%'s automod responses

The actions the rule takes when it triggers. Adding a response replaces the one of the same type.

change modes setaddremovedelete
mentioned inManaging rules
Helpful?
propertylist of Textsince 5.0.0-a2
[the] filtered keywords of %automodrule%
%automodrule%'s filtered keywords

The keywords of a keyword rule.

mentioned inManaging rules
Helpful?
propertylist of Textsince 5.0.0-a2
[the] filtered patterns of %automodrule%
%automodrule%'s filtered patterns

The regex patterns of a keyword rule.

mentioned inManaging rules
Helpful?
propertylist of Textsince 5.0.0-a2
[the] allow list of %automodrule%
%automodrule%'s allow list

The words that never trigger a keyword or preset rule.

mentioned inManaging rules
Helpful?
propertylist of KeywordPresetsince 5.0.0-a2
[the] presets of %automodrule%
%automodrule%'s presets

The keyword presets of a preset rule.

mentioned inManaging rules
Helpful?
propertyNumbersince 5.0.0-a2
[the] mention limit of %automodrule%
%automodrule%'s mention limit

The mention count above which a mention spam rule fires.

mentioned inManaging rules
Helpful?
propertyBooleansince 5.0.0-a2
[the] mention raid protection of %automodrule%
%automodrule%'s mention raid protection

Whether a mention spam rule also detects mention raids.

mentioned inManaging rules
Helpful?
propertyAutoMod Trigger Configawait write-only since 5.0.0-a2
[the] trigger config of %automodrule%
%automodrule%'s trigger config

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.

change modes set
mentioned inManaging rules
Helpful?
propertyText since 5.0.0-a1
[the] name of %automodrule%
%automodrule%'s name

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".

change modes set
mentioned inManaging rules
Helpful?
propertyGuild since 5.0.0-a1
[the] guild of %automodrule%
%automodrule%'s guild

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).

Helpful?

Getters

1

Returned by

3

Syntaxes elsewhere in DiSky that return AutoMod Rule.

Documentation

3

Hand-written guides that cover AutoMod Rule.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.