New AutoMod Message Rule Builder (Expression) — DiSky
Addon: DiSky · Category: Expression · Since: 5.0.0-a2
Syntax
[a] new automod rule builder [(named|with [the] name)] %text% in [the] [guild] %types.guild% (for|checking) messages (with|using) [the] [trigger] %types.triggerconfig%Description
Creates a builder for a rule checked when a message is sent.
Examples
set {_t} to a new automod keyword trigger with the keywords "badword"
set {_b} to a new automod rule builder named "No bad words" in event-guild for messages using {_t}
add a new automod response blocking the message to automod responses of {_b}
await set {_rule} to the build result of {_b}