How to Set Up Auto Moderation Rules on Discord

How to Set Up Auto Moderation Rules on Discord

Auto moderation on Discord means letting a bot spot the things your moderators would want to know about, and act on them, without someone watching every channel. With Quark Automations you write a rule as one sentence: when something is logged, and only if something is true, then do this.

This guide sets up your first rule in about five minutes, then gives you a handful of rules worth copying.


What you need

  • Quark in your server. If it isn't yet, add Quark and follow the setup guide.
  • Access to the dashboard for that server.
  • A channel your moderators read, such as #mod-alerts.

Every plan can make rules. The free plan gets one, which is plenty to start with.

How a rule works

A rule is built from three parts, and the builder reads it back to you in plain English as you go.

PartWhat it doesExamples
WhenThe logs the rule watchesBan, Member Join, Message Deleted, or a whole category
And only ifConditions that must all be trueSomeone has a role, a bot did it, the account is new, it keeps happening
ThenUp to four actions, in orderAlert a channel, add a notice to the log, reply, react, time out, kick or ban

Because a rule runs on Quark's logs rather than only on messages, it can react to things Discord's own AutoMod never sees: bans, role changes, joins, voice, threads and channel edits.

The Automations rule builder, with a rule that alerts #mod-alerts when someone with the Moderator role is banned

Tutorial: alert your mods when a brand-new account joins

New accounts are where most raids and scam accounts come from. This rule tells your mods about every join from an account under a week old.

  1. Open the dashboard, pick your server and choose Automations in the sidebar.
  2. Press New rule.
  3. Under Or start from an idea, choose the idea for an account under 7 days old joining. It opens in the builder with the blanks left for you.
  4. When is already set to Member Join. Check that And only if reads the account is new.
  5. Under Then, pick the channel for the alert, such as #mod-alerts, and the one role to ping, such as @Moderators. Write the alert text, for example: {target} just joined with a new account.
  6. Look at the side panel. In plain English reads the rule back, and What it does draws the alert as it will look in Discord.
  7. Press Try it to run the rule against sample logs and see which would set it off.
  8. Switch Dry run on for the first day, then press Save rule.

With dry run on, the rule counts how often it would have acted and does nothing else. When the count looks right, switch dry run off.

An alert in #mod-alerts from a Quark rule, pinging the Moderators role when an account under 7 days old joins, above the Member Join log

Five rules worth copying

All five start from ideas in the builder, and all five work on every plan.

  1. Mass deletes. Alert a channel when one member has 5 messages deleted in 10 minutes. A good early sign of someone wiping their tracks.
  2. Staff bans. Tell a channel and ping an admin when someone with your staff role is banned.
  3. Webhooks and bots. Alert when a webhook is created or a bot is added, two things that are rarely harmless when nobody expected them.
  4. Join raids. Alert when 10 members join in a minute. The same rule can also lock a channel you choose.
  5. Scam links. Flag a log whose message holds a known scam link. The rule can also time the poster out for an hour. See the scam link blocker for how Quark's link lists work.

Careful by design

A bot that can ban people needs guard rails. Quark's are built in, on every plan:

  • A rule never acts on the server owner, on Quark, or on anyone whose highest role is level with or above Quark's.
  • Alerts ping only the one role you choose, never @everyone or @here.
  • Every rule has hourly limits, and so does the server as a whole. Past a limit, actions wait until the next hour.
  • Only someone with the matching Discord permission, such as Ban Members, can save a rule that bans. A rule acts with the permissions of whoever last saved it, checked at the moment it acts.
  • Alerts and moderation are recorded as a Rule Action log in your Quark Events channel, so you can always see what a rule did and why.

What each plan gets

FreePro LiteQuark Pro
Rules1325
Alerts, notices, copies, replies, reactions, holding a log backYesYesYes
Lists of words, including Quark'sYesYesYes
Changing a log's colourNoYesYes
Moderation actionsYesYesYes
Advanced conditionsNoNoYes
Trying a rule on your own logsNoNoYes

Nothing is deleted when a plan ends. A rule over the plan's limit, or one that needs a higher plan, is marked Parked and picks up again when the plan is back. See pricing for the plans.

FAQ

Is Quark Automations free?

Yes. Every server gets one rule for free, and it can use every action, timeouts, kicks and bans included. Only changing a log's colour needs Pro Lite. Pro Lite raises that to 3 rules and Quark Pro to 25.

How is this different from Discord's AutoMod?

Discord's AutoMod checks messages before they are posted. Quark's rules run on everything Quark logs: bans, role changes, voice, threads, joins and more. The two work well side by side.

Can a rule ban the server owner or a moderator by mistake?

No. A rule never acts on the server owner, on Quark, or on a member whose highest role is level with or above Quark's. Every rule also has hourly limits.

Can I test a rule before it does anything?

Yes. Try it runs the rule against sample logs, and Dry run lets a live rule count how often it would have acted without doing anything.


Ready to write your first rule? Open Automations in the dashboard, or read the full guide to automations for every condition and action.

Thanks for reading.
Quark logo

Protect Your Discord Community.

Join thousands of server owners using Quark to secure their communities. Set up logging in minutes.

Start Logging Now