Mod actions and lockdown
Warn, time out, kick, ban and unban members, clear messages in bulk, and lock the server down in an emergency.
What it does
#These are the commands your moderators use by hand: warn, mute (Discord's timeout), kick, ban, unban, purge, lockdown and the role commands.
Every warn, mute, unmute, kick, ban and unban creates a case with your server's next case number, and so does each lockdown and unlock. See Cases for case numbers and how to view or edit them.
What Solara posts. After an action, Solara replies with an embed titled like "🔨 Member Banned (Case #7)" (you can change titles under Response Templates) showing the member, the moderator, the duration (for mutes) and the reason. With a slash command (/warn, /mute, /unmute, /kick, /ban, /unban) the reply, and any refusal or error, is only visible to you; use a public notice (below) if you want the channel to see it. With the prefix (?warn) the reply is posted in the channel. The same embed goes to your Moderation Actions log channel, if you've set one (see Logging setup).
Public notices. You can also have Solara post a public notice about an action in a channel of your choice. Pick the channel under Public response channel (Moderation page, Settings tab), then turn on Public response in that action's template (Response Templates tab) and write its Notice message. Solara then posts an embed in that channel with the template's title, color and footer, and the notice message as its text (the same variables like {user} and {reason} work). Both are off to start. If Solara can't post it (the channel was deleted, or Solara isn't allowed to post there), the action still happens and the reply's footer says "Couldn't post the public notice".
Direct messages. Solara can DM the member about the action. By default it DMs for warnings, mutes, kicks and bans, and not for unbans or unmutes. For kicks and bans, the DM goes out before the member is removed. If the DM can't be delivered, the action still happens, the reply's footer says "⚠️ User could not be notified via DM", and the case reason gets "[User could not be notified via DM]" added.
The role hierarchy guard. Before any warn, mute, unmute, kick or ban, Solara checks roles. It refuses, privately, when:
- the target is the server owner: "You can't act on the server owner."
- the target's highest role is at or above yours: "name has a role at or above yours."
- the target's highest role is at or above Solara's: "name has a role at or above mine."
The server owner is never blocked by these checks. A refused action does nothing: no case, no DM, no Discord action. Unbans by user ID skip the check, because the person isn't in the server.
Lockdown changes channel permissions for @everyone so people can't post (or join voice, depending on the profile). Solara saves the original permissions first and puts them back when you lift it.
Commands
#Every command except the /role ones works as a slash command and with your prefix (the default is ?, so ?warn and ?purge bots 50 work too). Reasons are optional. Without one, the reason is "No reason provided.", except /unmute ("Manual untimeout") and /unlock ("Lockdown lifted.").
What you'll see when something goes wrong: a red error only you see (with the prefix it disappears after 10 seconds), in plain English. For example, if Solara's role is too low it says "I can't kick that member. Check my role is above theirs and I have Kick Members." (and the same for ban and timeout), and /unmute on someone without a timeout says "@member isn't timed out." With nobody timed out, /timeoutlist says "No one is timed out".
| Command | What it does |
|---|---|
/warn <member> [reason] | Warns the member and creates a case. |
/mute <member> [duration] [reason] | Times the member out. Write the duration like 10m, 2h or 1d (s, m, h or d), up to 28 days. Leave it out to use your server's Default mute length (1 hour unless you change it); the reply then shows the duration like "1 hour (server default, no duration given)". With the prefix, a first word after the member that doesn't start with a number is the start of the reason: ?mute @member spamming links mutes for the default with the reason "spamming links". A first word that starts with a number (or +/-) has to be a valid duration. If they're already timed out, Solara says "@member is already timed out." |
/unmute <member> [reason] | Removes the timeout. |
/timeoutlist | Lists everyone timed out right now, with when each timeout ends (up to 20). |
/kick <member> [reason] | Kicks the member. |
/ban <member> [reason] [delete_messages] | Bans the member. Works on people who aren't in the server too. Delete messages (slash only) picks how much of their recent history Discord removes across every channel: Don't delete, Last hour, Last 6 hours, Last 24 hours, Last 3 days or Last 7 days. Leave it out, or use ?ban, to use your server's Delete messages on ban setting. |
/unban <user ID> [reason] (or ?unban) | Unbans by user ID (copy it from the user's profile; a mention like <@ID> works too). If they aren't banned, Solara says "That user isn't banned here." |
/purge all [amount] | Deletes that many recent messages, 1 to 1000. Without an amount, Solara asks you to react ✅ within 30 seconds, then deletes up to 1000. With the prefix, ?purge 20 and ?purge all work too. |
/purge bots, humans, links, invites, embeds, attachments or mentions <amount> | Deletes only matching messages among the last amount (1 to 1000). |
/purge user <user> <amount> | Deletes that person's messages among the last amount. |
/purge contains, startswith or endswith <text> <amount> | Deletes messages that contain, start with or end with the text (not case-sensitive). |
/lockdown [profile] [duration_minutes] [reason] | Starts a lockdown after you click Activate Lockdown (45 seconds, and only you can click it). Profiles: chat_freeze, raid_containment or full_emergency; leave it out to use the Containment Profile picked on the dashboard's Lockdown page (chat_freeze if none is picked), and the confirmation shows which one will run. Duration is 5 to 10080 minutes (7 days); leave it out to use the dashboard's Default Duration, or until you lift it if there is none. With the prefix it's ?lockdown [profile] [minutes] <reason>: the profile and minutes are optional, and everything after them is the reason, so ?lockdown raid incoming, stay calm locks with the server's default profile and the reason "raid incoming, stay calm", and ?lockdown full_emergency 30 bot wave locks with Full Emergency for 30 minutes. A whole number right after the command (or after the profile) is always the minutes, so start a reason with a word, not a number. |
/unlock [reason] | Lifts the lockdown and restores permissions. |
/lockdown_recover | Retries restoring any permissions an unlock couldn't put back. |
/lockdown_status | Shows the lockdown state, profile, progress and expected lift time. Under Issues it lists channels an unlock couldn't restore, for example "Couldn't restore #general for @everyone: Solara is missing permission or can't see the channel." |
Purge details. Solara needs Manage Messages and Read Message History in the channel, and says which one is missing. Discord only bulk-deletes messages under 14 days old, so older ones stay. With the slash command the result is private; with the prefix it deletes itself after 5 seconds. Purges are logged to Moderation Actions but don't create cases.
Lockdown profiles:
- Chat Freeze: messages, threads, reactions and voice messages.
- Raid Containment: Chat Freeze plus joining, speaking and streaming in voice.
- Full Emergency: Raid Containment plus creating invites and using app commands. Channels stay visible.
Solara posts a "Server Lockdown Active" notice in your Central Status Channel (and in your Selected Notice Channels too, if the notification mode includes them) and edits it to "Lockdown Lifted" afterwards. A timed lockdown lifts itself when the time runs out. If a role had no permission entry on a channel before the lock, the unlock removes the one Lockdown added, so channels synced to their category stay synced. If someone changed a channel's permissions by hand during the lockdown, the unlock keeps their change, still finishes, and names those channels in its reply: "Left as someone set them during the lockdown: #general." If Discord refused to restore some channels, the reply says "Lockdown partly lifted: N targets failed. Run /lockdown_recover to retry." in the channel, so other moderators see it too.
/lockdown checks the profile and duration before it asks you to confirm: a wrong profile gives "Pick a profile: chat_freeze, raid_containment or full_emergency." and a duration outside 5 minutes to 7 days gives "A lockdown can last from 5 minutes to 7 days." /unlock on a server that isn't locked says "This server isn't locked down." If Lockdown is busy or restarting, you get "Lockdown is busy or restarting. Try again in a minute." /lockdown_recover answers only you: "Recovery finished", or "Recovery still has unresolved targets" with what to try next.
Roles
#The /role commands are slash commands only. They don't create cases. Adding, removing, creating, deleting and recoloring a role, and the end of a /role all or /role removeall, go to your Moderation Actions log channel. Colors are hex codes like #FF0000 (FF0000 and F00 work too); anything else gives "That isn't a valid color. Use a hex code like #FF0000."
| Command | What it does |
|---|---|
/role add <member> <role> [reason] | Gives the member the role. If they already have it, Solara says "@member already has @role." |
/role remove <member> <role> [reason] | Takes the role from the member. If they don't have it, Solara says "@member doesn't have @role." |
/role list | Lists the server's roles from the top down, with how many members each has. Roles run by a bot or integration are marked 🤖. A very long list shows as many as fit, with "Showing 120 of 180 roles" in the footer. |
/role info <role> | Shows the role's ID, mention, member count, color, position, whether it's shown separately, whether it's mentionable, whether a bot or integration runs it, when it was made, and its key permissions (Administrator, Manage Server, Manage Roles, Manage Channels, Kick Members, Ban Members). |
/role members <role> | Lists everyone with the role, 20 per page. With more than 20, ◀ Previous and Next ▶ buttons page through them ("Page 2 of 5 · 93 members"); only you can press them, and they go away after 3 minutes. The list is taken when you run the command. |
/role bots | Lists the roles run by bots or integrations, with how many members each has. These can't be given or taken by hand. |
/role create <name> [color] [hoist] [mentionable] | Makes a new role. Hoist shows its members separately in the member list, and mentionable lets everyone mention it; both are off unless you turn them on, and the color is none unless you give one. If the server is full, Solara says "This server has reached Discord's 250-role limit." |
/role delete <role> [reason] | Deletes the role. The reply says how many members had it. The @everyone role can't be deleted. |
/role color <role> <color> | Changes the role's color. The reply shows the old and new color. |
/role all <role> | Gives the role to every member who doesn't have it (administrators only). Solara first asks you privately, for example "Give @Role to 1,240 members?", and does nothing until you click the confirm button (45 seconds, and only you can click it). It then posts one progress message in the channel, like "Adding @Role: 300 of 1,240 done, 2 failed.", with a Stop button that you or any administrator can press; the message becomes the result when it ends. Solara can't undo this automatically, only one bulk role change runs per server at a time, and if Solara restarts part-way you run the command again to finish. |
/role removeall <role> | Takes the role from every member who has it (administrators only). It asks for confirmation, shows progress with a Stop button and can't be undone automatically, the same as /role all. |
Reasons are optional ("No reason provided" without one) and show in your server's Discord audit log. Before it changes a role, Solara checks where the role sits and refuses, privately, when:
- the role is at or above Solara's highest role: "I can't manage that role. Move my role above it and try again." (or "delete" for
/role delete). - the role is at or above your highest role: "You can't manage that role because it's at or above your highest role." The server owner is never blocked by this one.
- a bot or integration runs the role, for example "That role is managed by an integration, so it can't be assigned by hand."
On the dashboard
#Punishments stay in Discord, but you set them up on the dashboard.
- Moderation page, Settings tab: DM notifications (one switch per action: Warnings, Mutes / Timeouts, Kicks, Bans, Unbans, Unmutes), DM content (Include moderator, Include appeal information with an Appeal URL or instructions box), Default mute length (in minutes, 1 to 40320, which is 28 days; 60 to start), used when a moderator runs
/mutewithout a duration, Delete messages on ban (Don't delete, Last hour, Last 6 hours, Last 24 hours, Last 3 days or Last 7 days; Don't delete to start), used when a moderator bans without picking, and Public response channel (a text or announcement channel, or None) for public notices. Emptying the Appeal URL box or choosing None really clears the value. Changes apply in Discord right away. - Moderation page, Response Templates tab: for each action, the DM title, description and color; Reply and notice style (the Title, Color and Footer of both the command reply and the public notice); and Public notice, with the Public response switch and the Notice message. Variables like
{user},{reason}and{case_id}fill in for you. - Moderation page, Mod Logs tab: the case list (see Cases).
- Lockdown page: Overview has Preview Lockdown, Lift Lockdown or Retry Recovery (Preview Lockdown opens a pop-up that shows which channels change, how many notices go out and which roles are exempt; click Activate Lockdown to start it, or Cancel). Scope & Profiles sets the containment profile (used for lockdowns started from the dashboard), target channels and categories (leave both empty for the whole server), exemptions and the Default Duration. Notifications sets the status and notice channels and their messages. Activity & Recovery shows the history.
Who can use it
#Starting defaults (the server owner and Administrators can always use them):
/warn,/mute,/unmute,/timeoutlist,/lockdown_status: Manage Messages, Ban Members or Kick Members./kick: Kick Members or Ban Members./ban: Ban Members or Kick Members./unban: Manage Server, Ban Members or Kick Members./purge: Manage Messages./lockdown,/unlock,/lockdown_recover: Manage Server./role all,/role removeall: Administrators. Every other/rolecommand: Manage Roles.- The Moderation and Lockdown pages: people who manage Moderation.
Solara itself needs the matching Discord permission (Kick Members, Ban Members, Moderate Members for timeouts, Manage Roles for the /role commands, and Manage Channels plus Manage Roles (shown as Manage Permissions on a channel) for lockdown). You can change who gets each command with rules. See Permissions.
Common questions
#Solara said "name has a role at or above yours." The hierarchy guard stopped it. Someone with a higher role, or the server owner, has to do it.
What happens if I don't give a mute a duration? The member is timed out for your server's Default mute length (1 hour unless you change it on the Moderation page, Settings tab), and the reply says "(server default, no duration given)". A duration Solara can't read, like 10x, 5min, 5, 0m or more than 28 days, does nothing: no case, no DM, no timeout. This is the same for the slash command and the prefix (with the prefix, a first word that starts with a number counts as a duration). Solara replies privately: "That isn't a duration. Use 10m, 2h or 1d (up to 28 days), or leave it empty to use the server default (1 hour)." showing your server's own default.
The reply said "Couldn't post the public notice". The action went through, but Solara couldn't post in your Public response channel. Check the channel still exists and that Solara can send messages and embed links there, or pick another one on the Moderation page, Settings tab. A channel that was deleted shows as "Deleted channel" in the picker.
The reply said "Not confirmed by Discord". Discord didn't answer a ban, unban, kick, timeout or timeout removal in time, and when Solara checked, it still couldn't tell what happened. The action may have gone through, so check the ban list, the member list or the member's profile (or the audit log) before trying again. No case is recorded and nothing is posted publicly or in the mod log. Most of the time you won't see this: Solara checks once, and if the action did go through you get the normal reply with its case number.
A /role command said "Not confirmed by Discord". Discord didn't answer in time when Solara gave or took a role, or created, deleted or recolored one, and where Solara could check afterwards, it still couldn't tell. The change may have gone through, so look at the member's roles or the server's role list before you run it again (a second /role create could leave you with two roles). The message is posted in the channel and stays there, and nothing is written to the mod log. If the check shows the change did happen, you get the normal reply and the normal log entry.
A /role all or /role removeall result has a "Not confirmed by Discord" line. Discord didn't answer for those members, so Solara counted them and carried on. Run the command again to finish: it only changes members who still need it. If five members in a row get no answer, Solara stops the run and the result says "Discord stopped answering, so Solara stopped here. Run the command again later: it only changes members who still need it."
/lockdown or /unlock said "Not confirmed by Discord". Discord didn't confirm every channel change. Solara carries on by itself and finishes shortly, so check /lockdown_status before you try again. On the dashboard's Lockdown page those channels show Not confirmed yet until Solara has checked them.
Solara said "That user isn't banned here." Solara checks the ban list before unbanning. If the user isn't on it, it says so and records nothing.
The lockdown reply warned "The lockdown notice couldn't be posted in #channel." The channels were still locked, but Solara couldn't post its notice there. Check that Solara can send messages and embed links in that channel. If it says "The lockdown notice in #channel wasn't confirmed in time. Check whether it's there.", Discord was slow to answer: the notice may or may not have been posted, so have a look.
A purge deleted fewer messages than I asked for. The filtered purges check the last amount messages and delete only the ones that match. Messages older than 14 days can't be bulk-deleted.
Some channels weren't locked. Solara skips channels where it doesn't have Manage Channels, and anything you exempted.
The unlock said some channels were left as someone set them. Someone edited those permissions during the lockdown, so Solara left their change alone and finished the unlock anyway. Check those channels and fix them by hand if needed. If a server is still stuck showing "Degraded" from an older unlock, run /lockdown_recover (or /unlock): it finishes the unlock the same way.
How do I clear out a spammer's messages when I ban them? Pick a window in /ban's Delete messages option, or set a default under Moderation, Settings, Delete messages on ban. Discord deletes their messages from that window in every channel as part of the ban, so it's quick and costs nothing extra. Discord only goes back up to 7 days. The ban reply and the log show a line like "Messages deleted: last 24 hours". It needs migration 126 on the server.

