Skip to main content

,antispam

Also ,as, ,floodSlash /antispam#antispam

message rate and duplicate flood detection

Syntax,antispam <rate|duplicate|escalation|settings|ignore|list|reset>
Slash/antispam <subcommand>
Example,antispam rate on ++threshold 6 ++window 5 ++punish timeout

<required> · [optional]

Permission
Server Owner
Cooldown
None
Right-click menu
None
Related guide
Flood protection

Forms

rate <on|off> [++punish <punishment> ++threshold <number> ++window <seconds> ++duration <5m>]duplicate <on|off> [++punish <punishment> ++threshold <number> ++window <seconds>]escalation <on|off> [++punish <punishment> ++days <number>]settings [++purge <on|off> ++commands <on|off> ++duration <5m>]ignore <add|remove|list> [#channel]listreset

Subcommands

Prefix subcommands7 subcommands, A to Z
,antispam duplicate <on/off> [++punish <punishment> ++threshold <number> ++window <seconds>]

punishes users who repeat the same message

,antispam duplicate on ++threshold 4 ++window 30 ++punish timeout
,antispam escalation <on/off> [++punish <punishment> ++days <number>]

punishes repeat spammers more harshly

,antispam escalation on ++punish ban ++days 7
,antispam ignore <add/remove/list> [#channel]

exempts a channel or category from anti-spam

,antispam ignore add #spam
,antispam list

shows the current anti-spam configuration

,antispam list
aka show, status#antispam-list
,antispam rate <on/off> [++punish <punishment> ++threshold <number> ++window <seconds>]

punishes users who send messages too fast

,antispam rate on ++threshold 6 ++window 5 ++punish timeout
,antispam reset

clears all anti-spam configuration for this server

,antispam reset
,antispam settings [++purge <on/off> ++commands <on/off> ++duration <5m>]

burst purge, command exclusion and timeout length

,antispam settings ++purge on ++commands on
aka set, config#antispam-settings

Slash commands 7 leaves, grouped the way Discord groups /antispam

<required> · [optional]. Parameters come from Discord’s own registered commands; a blank default means the bot states none.

/antispam, top level7 leaves
/antispam rate

Punish a user who sends too many messages too fast

/antispam ratestate (required)punishthresholdwindowduration
ParameterTypeDefaultDetail
staterequiredString—Turn rate detection on or offOn · Off
punishStringtimeoutWhat to do when it tripsWarn · Timeout · Mute · Jail · Kick · Softban · Ban
thresholdInteger6Messages needed to trip it(3–50)
windowInteger5Seconds they must arrive within(2–120)
durationString5mTimeout length, e.g. 5m
#antispam-rate
/antispam duplicate

Punish a user who repeats the same message

/antispam duplicatestate (required)punishthresholdwindow
ParameterTypeDefaultDetail
staterequiredString—Turn duplicate detection on or offOn · Off
punishStringtimeoutWhat to do when it tripsWarn · Timeout · Mute · Jail · Kick · Softban · Ban
thresholdInteger4Identical messages needed to trip it(3–50)
windowInteger30Seconds they must arrive within(2–120)
#antispam-duplicate
/antispam escalation

Punish repeat offenders more harshly

/antispam escalationstate (required)punishdays
ParameterTypeDefaultDetail
staterequiredString—Turn escalation on or offOn · Off
punishStringbanWhat a repeat offender getsWarn · Timeout · Mute · Jail · Kick · Softban · Ban
daysInteger7How far back a prior offence counts(1–90)
#antispam-escalation
/antispam settings

Purge, command exclusion and timeout length

/antispam settingspurgecommandsduration
ParameterTypeDefaultDetail
purgeBooleantrueDelete the whole burst, not just one message
commandsBooleantrueIgnore messages that are bot commands
durationString—Timeout length, e.g. 5m
#antispam-settings
/antispam ignore

Exempt a channel or category from anti-spam

/antispam ignoreaction (required)channel
ParameterTypeDefaultDetail
actionrequiredString—Add, remove, or list exempt channelsAdd · Remove · List
channelChannel—The channel or category to exempt (not needed for list)
#antispam-ignore
/antispam list

Show the current anti-spam configuration

#antispam-list
/antispam reset

Clear all anti-spam configuration for this server

#antispam-reset