Advanced matching and portable rulesets
Combine AND, OR, NOT, regex, roles, users, and webhooks, then import or export those rules.
Open the builder
In the dashboard, open Autothreads, select a configuration, then open Message conditions. Any message, Text, URL, and Media remain shortcuts: selecting one replaces the current tree with its equivalent condition. Discord keeps presets and simple lifecycle actions, while advanced editing is dashboard-only.
A tree contains at most 20 conditions or groups across 4 levels. An AND group requires every child; an OR group requires at least one. NOT reverses a condition or group. Channel configurations are evaluated before server-wide ones, with ordered alternatives within each scope: the first match wins. The Channel condition can narrow a server-wide rule to selected channels.
The builder adds common conditions at the root. JSON import supports more elaborate nested groups, such as a specific role AND either a ticket prefix or a recognized webhook.
Message content
Text conditions and regex targeting content read the main message text, embed text (author, title, description, field names and values, footer), and Components V2 Text Display blocks inside sections and containers. These parts are joined with line breaks in display order. Explicitly forwarded messages include the snapshot's text too; replies do not import the replied-to message.
Auto Threads, AutoReact and Sticky Messages use this same text. Content-based naming and URLs written in that text use it too. Image/avatar URLs, button targets, component identifiers and file metadata are excluded. Bots and webhooks still need authorization in the rule; richer content does not enable them automatically. Existing JSON imports and exports keep the same format.
Friendly regex
A regex condition explicitly selects content, author username, author display name, or webhook username. Contains, equals, starts with, ends with, and whole word escape input automatically and ignore case by default.
Advanced mode uses Unicode RE2 with case and multiline options. Lookahead, lookbehind, and backreferences are unavailable. Invalid patterns are rejected before storage.
Webhook names are not identities
A webhook username can change, be shared, or be imitated by another webhook. Use it to route automation, never to grant permission or protect a sensitive action. Prefer equals when the expected name is fixed.
Bots and webhooks remain blocked by default. A user condition targeting a bot, or a positive webhook-username condition, authorizes it only when that branch succeeds. The panel calls out this exception.
Capture-based naming
Under Thread name, add a regex naming rule. It inspects content or identity and builds the title from numbered or named captures:
Expression: ticket-(?<number>\d+)
Name: Ticket {capture.number} · {displayName}Simple and regex rules share the same five-rule fallback list. A regex with no match or a missing capture falls through. The final fallback remains display name, username, then Discussion.
Import and export
Export matching and naming in an autothreads.ruleset version 1 bundle. The expert editor accepts up to 64 KiB of JSON, resolves requested parameters in the browser, then replaces only the included sections in the draft. Nothing is persisted until you select Save.
Normal exports retain Discord IDs. For a portable template, replace a literal reference with a parameter:
{
"$schema": "https://autothreads.arcoz.dev/schemas/ruleset-v1.json",
"format": "autothreads.ruleset",
"version": 1,
"parameters": {
"moderatorRole": { "type": "discord-role", "description": "Allowed role" }
},
"matching": {
"root": {
"type": "condition",
"condition": "ROLE",
"reference": { "kind": "parameter", "name": "moderatorRole" }
}
}
}Auto Threads blocks unresolved parameters and IDs absent from the target server. The public JSON Schema lets AutoReact or another tool validate the same file without Discord or Prisma.