Ammit Portal
Shop Sign in
Feature overview

Sanctions

Customize the notifications sent to sanctioned members, the protected roles and the preset reasons.

At a glance

Availability
Free, with Premium options
In the portal
Moderation › Sanctions

Overview

Ammit applies Discord's sanctions for your team and keeps a record of them. A moderator warns, mutes, kicks, or bans a member with a command, with the Moderate right-click action, or from the portal. Before acting, Ammit checks that the sanction is allowed. It then notifies the member by private message, applies the sanction, and records it in a case posted in the sanctions channel.

On the Sanctions page of the portal, you configure the direct message sent to the sanctioned member and the roles protected from sanctions. You also manage the aliases there, short words that your team types in place of a full reason.

How it works

The sanctions

SanctionEffect
WarningApplied with /warn. It has no effect in Discord, but it is recorded in the member's record and they are notified by private message.
MuteApplied with /mute or /timeout. Ammit uses Discord's timeout, which prevents the member from writing and speaking on the server until the end of the duration.
KickApplied with /kick. The member leaves the server and can come back with a new invitation.
BanApplied with /ban. The member leaves the server and cannot come back. Ammit can also delete their messages from the last 7 days at most.
SoftbanApplied with /softban. Ammit bans the member and lifts the ban immediately. Their messages from the last few days are deleted, and they can come back with a new invitation.

Before each team sanction

Ammit never lets a moderator do through it what Discord would forbid them to do. Before acting, it checks these conditions.

  • The moderator has the Discord permission for the sanction, and so does Ammit. The warning has no equivalent in Discord. It is reserved for the moderation team.
  • The targeted member's highest role is placed below the moderator's and below Ammit's. As in Discord, when the server owner imposes a sanction, the position of their own role does not come into play.
  • The targeted member has none of the protected roles.
  • The targeted member is neither the moderator themselves, nor the server owner, nor Ammit.

If a condition is not met, Ammit refuses the sanction and gives the reason. A person who is not on the server can be banned by their ID. The role rules do not apply to them, since they have no role on the server.

How it works

  1. Ammit sends the private message to the member before acting, because it could no longer write to them after a kick or a ban.
  2. It applies the sanction in Discord.
  3. It records the case and posts it in the sanctions channel.
  4. If automatic escalation is turned on, it adds the sanction's points to the member's total and applies a heavier sanction when a threshold is crossed.

The moderator receives a confirmation with the case number. It also flags when the member was not notified, because their direct messages are closed or the sanction direct message is turned off. This confirmation appears in the channel where the command was typed, visible to everyone who has access to it.

/ban first shows a summary that only you can see, with Confirm and Cancel buttons. If there is no response within 30 seconds, the ban is abandoned. When double approval is turned on, a kick or ban requested by a team member is applied only with the agreement of a second authorised member.

A sanction applied directly in Discord goes through neither these checks nor the direct message. Ammit still records it in the member's file if it has the View Audit Log permission.

Direct message to the member

When the switch on the Direct message to the member card is turned on, Ammit notifies the member for every warning, mute, kick, ban and softban, including when the sanction comes from Automod or automatic escalation. Lifting a mute or a ban is not notified to them. When the switch is turned off, Ammit does not attempt to send anything.

The standard message states the sanction, the server name and the reason. For a mute, it also gives the duration and its end date. It never names the author of the sanction. If Appeals are turned on, it carries the Appeal the sanction button.

With Premium, you compose your own message. It entirely replaces the standard message. Insert the reason and the duration using the following variables.

VariableReplaced by
The type of sanction in capital letters, preceded by its emoji, for example WARNING or MUTE.
What was done to the member, for example warned, muted, kicked, or banned.
The reason for the sanction, or “no reason provided”.
The length of the sanction, or a dash when it has none.
Your server's name.

A field whose value is limited to {duree} disappears from the message when the sanction has no duration. An embed with no colour chosen takes the sanction's colour.

Reason aliases

When the reason for a sanction starts with an alias, Ammit replaces it with the full reason and places the rest of the text in brackets. With the alias “ad” associated with the reason “Unauthorised advertising”, the reason “ad link sent in a direct message” becomes “Unauthorised advertising (link sent in a direct message)”.

Ammit replaces aliases in sanctions decided in Discord, with a command or with the Moderate action. Ammit's automatic sanctions keep their own reason.

Protected roles

Ammit never sanctions a member who has one of the protected roles. Sanction commands, the Moderate action, the portal and the alert buttons refuse to target them, including for a quarantine. Automatic escalation does not apply to them. Automatic protections, such as anti-raid, anti-nuke, scam detection and the antivirus, do not sanction them either. Their malicious files and scam links are still deleted. Automod ignores their messages. Reserve these roles for trusted members.

Lifting or removing a sanction

  • /unmute lifts a member's current mute. Ammit sets the mute case to Revoked and creates an End of mute case.
  • /unban lifts a user's ban based on their ID. Ammit sets the ban case to Revoked and creates an Unban case.
  • /revoke removes a sanction based on its case number. If that case is the current mute or the latest ban, Ammit also lifts the sanction in Discord. For a warning, a kick, or an older mute, only the case changes, and a member who was kicked is not invited back.

A revoked case stays visible with the Revoked status, and its points no longer count. /revoke also creates a Sanction revoked case, posted in the sanctions channel. The command refuses cases that are not sanctions, such as a purge or the end of a mute. If Discord refuses to lift the sanction, the case is not revoked.

Deleting messages

/clear examines the latest messages in the channel where you type the command, up to 1,000. The command deletes only those that are less than 14 days old, because Discord refuses to bulk-delete older messages. With the member option, only that member's messages are deleted. Ammit keeps pinned messages, like the automatic cleanup. From 50 messages, Ammit asks for confirmation. The reply is visible only to you, and the deletion is recorded in a Purge case.

Configuration

In your server's menu, open Sanctions, in the Moderation section.

Screenshot taken on the “Les Gardiens du Nord” demo server.
  1. Check that a Sanctions channel is chosen in Logs, Security section. Ammit posts every sanction there.
  2. In the Direct message to the member card, leave the switch turned on to notify each sanctioned member.
  3. With Premium, compose your message in Message text. The editor shows it as it will appear in Discord, and the Templates button offers ready-made messages. An empty message restores the standard message.
  4. In the Protected roles card, choose the roles that Ammit must never sanction.
  5. Save your changes.

With Premium, add your aliases in the Preset reasons and aliases card. Enter the alias, then the full reason, and click Add a reason. Each alias is saved immediately, without using the Save button. The icons on each row are used to edit or delete an alias.

An alias is written as a single word of 30 characters at most, with letters, digits, hyphens or underscores. The full reason is at most 400 characters long.

In Discord, /config immune adds or removes a protected role.

Settings

Direct message to the member

Before the sanction is applied, a direct message informs the member of its reason and duration.

SettingDescriptionDefault value
Send a direct message to the member after a sanctionEnabled
Message textPremiumEmpty: standard text. Variables: {serveur}, {type}, {sanction}, {raison}, {duree}.None

Protected roles

Ammit never sanctions members who have these roles, whether at the team's request or through its automatic protections. Their malicious files and scam links are still deleted.

SettingDescriptionDefault value
Roles protected from sanctionsNone

Usage

To warn a member, type /warn, choose the member in the member option, then enter the reason. In the commands, the reason is mandatory for a warning and optional for the other sanctions. It is at most 500 characters long.

To ban a person who is not on the server, paste their Discord ID in the user option of /ban. The delete_days option also deletes their messages from the last few days, from 0 to 7. /unban also asks for the ID. You will find it in the ban report posted in the sanctions channel, or in Discord after turning on developer mode.

Type your commands in a channel reserved for the team if you do not want their confirmation to be seen by members.

The Moderate action

In Discord, right-click a member, open Apps, then choose Moderate. Ammit shows, for you alone, one button for each measure that your permissions allow. The possible measures are Warn, Mute (1 h), Kick, Ban, and Quarantine. After your choice, a window asks for a reason, which is optional.

The mute for this action lasts one hour, and the ban does not delete any messages. Quarantine removes the member's roles and gives them the Quarantine role chosen in Alerts and quarantine. It does not create a case and is tracked on the Alerts and quarantine page. The Moderate action does not target yourself, the server owner or a bot.

Discord commands

In the duration option, write a number followed by a unit, for example 10m, 2h, 2h30, 1j 12h, or 7j. The units are s, m, h, j, and sem. A bare number counts as minutes.

Discord commandWhat it does and optionsRequired permissions
Ban a user
  • userThe user to ban (an ID also works)
  • reasonOptionalReason for the ban
  • delete_daysOptionalDelete their messages from the last N days (0 to 7)
  • watchlist_reasonOptionalReason for the shared listRepeated or mass-sent messagesLinks blocked by the anti-scam filterFile detected as maliciousArrival during a detected raidMass destructive actionsReturn after a banAutomated account
Ban Members
Delete messages in this channel
  • countNumber of messages to examine (1 to 1000)
  • memberOptionalOnly delete this member's messages
Manage Messages
Kick a member from the server
  • memberThe member to kick
  • reasonOptionalReason for the kick
  • watchlist_reasonOptionalReason for the shared listRepeated or mass-sent messagesLinks blocked by the anti-scam filterFile detected as maliciousArrival during a detected raidMass destructive actionsReturn after a banAutomated account
Kick Members
Mute a member for a duration
  • memberThe member to mute
  • durationDuration: 10m, 2h, 2h30, 7j (28 days maximum)
  • reasonOptionalReason for the mute
  • watchlist_reasonOptionalReason for the shared listRepeated or mass-sent messagesLinks blocked by the anti-scam filterFile detected as maliciousArrival during a detected raidMass destructive actionsReturn after a banAutomated account
Timeout Members
Revoke a sanction and undo its effect
  • numberThe number of the case to revoke
  • reasonOptionalReason for revoking
Timeout Members
Ban Members to remove a ban
Kick a member and delete their recent messages
  • memberThe member concerned
  • reasonOptionalReason
  • delete_daysOptionalDelete their messages from the last N days (1 to 7)
  • watchlist_reasonOptionalReason for the shared listRepeated or mass-sent messagesLinks blocked by the anti-scam filterFile detected as maliciousArrival during a detected raidMass destructive actionsReturn after a banAutomated account
Ban Members
Alias of /mute (timeout)
  • memberThe member to time out
  • durationDuration: 10m, 2h, 2h30, 7j (28 days maximum)
  • reasonOptionalReason for the timeout
  • watchlist_reasonOptionalReason for the shared listRepeated or mass-sent messagesLinks blocked by the anti-scam filterFile detected as maliciousArrival during a detected raidMass destructive actionsReturn after a banAutomated account
Timeout Members
Lift a user's ban
  • user_idDiscord ID of the banned user
  • reasonOptionalReason for lifting
Ban Members
Let a member speak again
  • memberThe member concerned
  • reasonOptionalReason for lifting
Timeout Members
Warn a member
  • memberThe member to warn
  • reasonReason for the warning
Timeout Members
Moderation team

Right-click actions

Right-click a message or a member, then open the Apps menu to use these actions.

ActionUsed onWhat it doesRequired permissions
ModerateMemberApply a sanction to a member or put them in quarantineTimeout Members
Moderation team

Required permissions

Ammit applies each sanction with its own permissions. The moderator must have the same permission as it does.

ActionPermission required
WarningNo Discord permission. The moderator must be part of the moderation team.
Mute and lifting a muteTimeout Members
KickKick Members
Ban, softban, and unbanBan Members
Deleting messagesManage Messages. Ammit also needs Read Message History.
QuarantineManage Roles
Revocation with /revokeBan Members for a ban, Timeout Members for the other sanctions.

In your Discord server settings, under Roles, place Ammit's role above the roles of the members to sanction. In the sanctions channel, Ammit must have the View Channels, Send Messages, and Embed Links permissions.

Discord offers each command to members who have the permission shown in the command table. You can change this access in your Discord server settings, under Integrations. Ammit checks the moderator's permissions on every use anyway.

/warn and the Moderate action are reserved for the moderation team. It includes the server owner, members with the Administrator or Manage Server permission, members who have the Moderation access, and members who can time out, kick, or ban members.

In the portal, the server owner and administrators configure the Sanctions page. The access of other roles and members is set in Team and access. In Discord, the /config set command requires the same accesses.

Free version and Premium

FeatureFreePremium
Sanctions and cases: warning, mute, kick, ban, notesIncludedIncluded
Protected roles and direct message to the sanctioned memberIncludedIncluded
Reason aliasesNot included100
Editable default texts: sanction direct message, ticket welcome and closingNot includedIncluded

Limits

  • Discord limits a mute to 28 days and the deletion of a banned member's messages to their last 7 days.
  • Removing a kick or a softban does not bring the member back to the server.
  • If the automatic lifting of a softban fails, the member stays banned. Ammit reports it, and /unban then lifts the ban.
  • An alias is only recognised at the start of the reason. The number of aliases depends on your plan.
With Premium

The custom direct message and the reason aliases are reserved for Premium servers. Without Premium, Ammit sends the standard message, and your aliases remain saved without being applied.

Frequently asked questions

Why does Ammit refuse to sanction a member?

The error message gives the reason. Most often, the member's highest role is equal to or higher than yours or Ammit's, or the member has a protected role. It may also be that you or Ammit do not have the permission for the sanction.

Why did the member not receive a direct message?

The member may have closed their direct messages, in which case Ammit cannot write to them. The switch on the Direct message to the member card may also be turned off. For a sanction applied with a command, the confirmation says which of these two reasons applies.

Why did /clear delete fewer messages than requested?

The number shown is the number of messages examined, not the number of messages deleted. Among them, Ammit only removes messages less than 14 days old, and only those from the chosen member if you filled in the member option. Pinned messages also stay in place.

Learn more