Turn away brand-new accounts, and shut the server automatically when a lot of them arrive at once.
Two separate watches
They answer different attacks, and most servers want one more than the other. Set either, or both — the module does nothing until at least one is filled in.
Account age looks at each arrival on its own. An account made minutes ago is the cheapest thing an attacker has, and refusing one costs a real new member nothing but a wait: they can join as soon as their account is old enough. This never shuts your server.
Join rate looks at arrivals together. Thirty accounts in ten seconds is a raid whatever each account's age, and the answer is to stop the server taking damage rather than to deal with thirty members one at a time.
Setting the join rate
Pick the rate that would never happen on your busiest day. A server that gets twenty joins after a stream should not set fifteen in a minute — a rule that cries wolf is one you will switch off, and then it is not protecting anything.
You can ask to be told instead of shut. That is the right choice if somebody is usually around; shutting is for the hours when nobody is.
What "shut the server" means
Exactly what /lockdown does, because it is the same thing: every channel closes except the
ones you have exempted, and it appears in your moderation history where anybody can lift it.
Two things follow from that, and both surprise people:
- The Moderator module has to be on, because that is the module the lockdown belongs to. If it is off, a rule set to shut the server cannot fire, and the settings page says so.
- The exempt channel list is the one you already set under Moderator. There is no second list here. Which channels stay open when you shut is one decision, and asking you for it twice would guarantee the two answers drift apart.
You can have it reopen by itself after a set number of minutes, or leave that empty and have it stay shut until a person lifts it. Only automatic shutdowns reopen on the timer — one you triggered yourself is never reopened for you.
Why there is no automatic ban
An account's age is the one thing about it guaranteed to change. An account refused today for being an hour old is an ordinary member next week, so the right answer is one that expires on its own.
A kick does. A ban does not — it outlives the reason for it, and because Discord never reissues a user ID, a wrongly banned new member is shut out permanently by a rule that no longer applies to them. If you want somebody banned, ban them; that is a decision for a person who looked.
What is stored
Nothing about the people involved. This module holds your thresholds and your alert channel, and no record of who arrived, who was turned away, or who was caught in a raid. A list of accounts a server refused is a list of people, and keeping one would be collecting data to answer a question nobody asked.
What happened is in the alert the bot posts and in the lockdown record, which counts channels rather than members.
Permissions
Kick Members only if you choose to remove new accounts. Manage Roles to shut the channels, the same permission a lockdown needs. Send Messages in your alert channel.
