# Ignore the next logs about a target Source: https://docs.quark.bot/api-reference/active-ignore/ignore-the-next-logs-about-a-target /api-reference/openapi.json post /servers/{guild_id}/active/ignore/targets Asks Quark to leave out the next logs about one target: a member, message, channel, role or other thing a log is about. Send it just before, or just after, your bot does something you do not want logged. Active Ignore has to be switched on for the log type, or for every log type, before a request has any effect. A request that is not used expires on its own. A request that leaves out `logType` never covers a protected log type: Ban, Unban, Kick, Timeout and Timeout Removed (39 to 43), every Quark Events log type, Member Leave (2) and Bot Removed (58). To leave one of those out, name it in `logType` and use an Admin token. Requests are recorded in the server's Quark Events channel, as an Ignore Options Updated log that names the token by its ID. A request that names a protected log type is recorded every time. Any other request is recorded once an hour for each token. # Ignore the next logs of things done by a user Source: https://docs.quark.bot/api-reference/active-ignore/ignore-the-next-logs-of-things-done-by-a-user /api-reference/openapi.json post /servers/{guild_id}/active/ignore/executors Asks Quark to leave out the next logs of things done by one user, usually your own bot. Send it just before, or just after, the bot acts. Active Ignore has to be switched on for the log type, or for every log type, before a request has any effect. A request that is not used expires on its own. When your bot acts for a moderator and puts their ID at the start of the audit log reason, the log still counts as done by the bot. Send the bot's ID. A request that leaves out `logType` never covers a protected log type: Ban, Unban, Kick, Timeout and Timeout Removed (39 to 43), every Quark Events log type, Member Leave (2) and Bot Removed (58). To leave one of those out, name it in `logType` and use an Admin token. Requests are recorded in the server's Quark Events channel, as an Ignore Options Updated log that names the token by its ID. A request that names a protected log type is recorded every time. Any other request is recorded once an hour for each token. # Get server settings Source: https://docs.quark.bot/api-reference/configuration/get-server-settings /api-reference/openapi.json get /servers/{guild_id}/config/settings Returns the server's language setting. # Get the server record Source: https://docs.quark.bot/api-reference/configuration/get-the-server-record /api-reference/openapi.json get /servers/{guild_id}/config/guilds Returns Quark's record for the server. # Get the whole configuration Source: https://docs.quark.bot/api-reference/configuration/get-the-whole-configuration /api-reference/openapi.json get /servers/{guild_id}/config Returns every part of the server's Quark configuration in one response. The response includes the credentials of the webhooks Quark posts logs through, and the server's API token records. Treat it as sensitive. # Update server settings Source: https://docs.quark.bot/api-reference/configuration/update-server-settings /api-reference/openapi.json patch /servers/{guild_id}/config/settings Changes the server's language. `locale` is written as a language key such as `en-US`, but read back as a numeric ID. See the API introduction for both. # Add an ignore entry Source: https://docs.quark.bot/api-reference/ignore-options/add-an-ignore-entry /api-reference/openapi.json post /servers/{guild_id}/config/logging/ignore/{ignore_type} Adds one entry to an ignore list. # Get ignore options Source: https://docs.quark.bot/api-reference/ignore-options/get-ignore-options /api-reference/openapi.json get /servers/{guild_id}/config/logging/ignore/{ignore_type} Returns every ignore entry for the server, across all lists, not only `ignore_type`. Filter the result by `ignore_type` yourself. # Remove an ignore entry Source: https://docs.quark.bot/api-reference/ignore-options/remove-an-ignore-entry /api-reference/openapi.json delete /servers/{guild_id}/config/logging/ignore/{ignore_type} Removes one entry from an ignore list. The entry to remove goes in the request body. Succeeds whether or not the entry existed. # Introduction Source: https://docs.quark.bot/api-reference/introduction Configure Quark and read your logs from your own code The Quark API lets your own bot or script do what the dashboard does: change where logs go, manage ignore options and tags, read and export logs, and run the troubleshooter. ## Base URL ```http theme={null} https://quark.bot/api ``` Every endpoint is under `/servers/{guild_id}`, where `guild_id` is your server's ID. ## Authentication Send your token in the `Authorization` header of every request: ```http theme={null} Authorization: Bearer YOUR_TOKEN_HERE ``` Only the `Bearer` scheme is accepted, in any case. A token sent any other way, such as `Basic` or `Token`, is refused with `401`. ### Get a token Create a token on the [dashboard](https://quark.bot/dashboard): open your server and go to **Settings → API Access Tokens**. Tokens are created on the dashboard by people who manage the server in Discord. * A token works for **one server**, the one it was created for. * The token is shown once, when you create it. Quark does not store it, so copy it then. * Tokens expire after 90 days. * A server can have up to 5 tokens. * Every endpoint in this reference needs an **Admin** token, apart from the two [Active Ignore](/logs/options#active-ignore) endpoints. Those also take a **Basic** token, which cannot ask for moderation logs or Quark Events logs to be left out. * Creating or revoking a token produces a log in the server's Quark Events category. > [!WARNING] > > **Never** share a token with anyone, including Quark staff. An Admin token can read your logs and configuration, change every setting, revoke tokens and reset the server. A token cannot create another token, or change who has [dashboard access](/dashboard/access): both need someone signed in on the dashboard. Requests from a token to the dashboard access endpoints are answered `403`. To revoke a token, use **Settings** on the dashboard or the Tokens endpoints. A revoked token stops working immediately. A request with a token that is malformed, expired or revoked is answered `401`, with `WWW-Authenticate: Bearer error="invalid_token"`. Create a new token on the dashboard. ### The Quark Pro bot The main Quark bot and the Quark Pro bot have separate configurations. Requests act on the main bot unless you add `?bot=pro` to the address. ## Rate limits Requests are counted in **10-second windows**, across every endpoint. The current limit is 500 requests per window. > [!WARNING] > > The limit can change without notice. Read it from the response headers and do not hard-code it. Limits are counted per token. Every response includes: ```http theme={null} X-RateLimit-Limit: 500 X-RateLimit-Remaining: 333 ``` `X-RateLimit-Limit` is how many requests you can make in a window. `X-RateLimit-Remaining` is how many you have left in the current one. When you go over, the response is `429` with a `Retry-After` header giving the number of seconds to wait. Some endpoints have a limit of their own as well, counted per token: | Endpoints | Limit | | - | - | | Adding and removing ignore options, and creating, editing and deleting tags, together | 60 a minute | | Exporting logs | 6 a minute | Requests with a token that is not valid are counted by the address they come from. After 20 in a minute, that address is answered `429` until the minute is over. Requests with a valid token from the same address are not affected. ## Responses * Bodies are JSON, apart from the CSV export. * The endpoints under `/config/...` that read one part of the configuration return an **array of rows**, even when there is only one, and `404` when nothing is stored yet. `GET /config` returns one object holding all of them, with `null` for a part that has nothing stored. * Endpoints that change settings, log channels and ignore options return `202` with an empty object. The change is applied a moment later. Each endpoint's page lists its own status codes. * IDs are strings. On/off values in stored rows are `0` or `1`. | Status | Meaning | | - | - | | `200`, `201`, `202`, `204` | Success | | `400` | Something in the request is missing or invalid | | `401` | No token was sent, or the token is not valid: malformed, expired or revoked | | `402` | The server has reached a limit of its plan | | `403` | The token is for a different server, is not an Admin token, or the feature needs a paid plan | | `404` | Nothing is stored, or the thing you named does not exist | | `406` | A list is full. Each ignore list holds 500 entries | | `409` | It already exists | | `429` | Rate limited | | `500` | The server could not process the request. Some invalid values are reported this way too, such as an unknown language key | | `503` | Quark could not check the token, or could not make the change safely just then. Try again after the number of seconds in `Retry-After`, if there is one | Most error bodies are an empty object. Some include an `error` field with a short explanation. ## Reference values ### Log types Log types are identified by a number from 0 to 112. See the [log types](/logs/types) table. ### Categories `categoryMembers`, `categoryText`, `categoryVoice`, `categoryServer`, `categoryRoles`, `categoryChannels`, `categoryQuark`, `categoryActions`, `categoryModlog`. ### Ignore lists | `ignore_type` | List | | - | - | | 0 | Channels | | 1 | Channel categories | | 2 | Executor users | | 3 | Target users | | 4 | Message content | | 5 | Executor roles | | 6 | Target roles | ### Languages `locale` is **written** as a key and **read back** as a number. | Key | Number | Language | | - | - | - | | `en-US` | 0 | English, US | | `en-GB` | 1 | English, UK | | `tr` | 2 | Türkçe | | `vi` | 3 | Tiếng Việt | | `en-PR` | 4 | Pirate Speak | | `pl` | 5 | Polski | | `nl` | 6 | Nederlands | | `es-ES` | 7 | Español, España | | `it` | 8 | Italiano | | `de` | 9 | Deutsch | | `fr` | 10 | Français | | `ru` | 11 | Русский | | `el` | 12 | Ελληνικά | | `zh_Hant` | 13 | 繁體中文 | | `ko` | 14 | 한국어 | | `sl` | 15 | Slovenščina | | `ar` | 16 | العربية | | `hu` | 17 | Magyar | | `ja` | 18 | 日本語 | ## Getting moderation from your bot attributed correctly If your bot bans, kicks or times members out, you do not need the API to make Quark's modlogs show the right moderator. Start the audit log reason with the moderator's user ID in square brackets. See [bot integrations](/logs/integrations#your-own-bot). ## Endpoints The endpoints are listed in the sidebar, grouped by what they do. | Group | What you can do | | - | - | | Configuration | Read the whole configuration, change the server's language | | Log channels | Read and set the channel for each category, see channel load | | Logging settings | Server-wide options and settings for individual log types | | Ignore options | Add and remove ignore entries | | Active Ignore | Ask Quark not to log something your own bot is about to do. See [Active Ignore](/logs/options#active-ignore) | | Tags | Create, update and delete tags | | Logs | Read, filter and export logs | | Notifications | Read and acknowledge configuration changes | | Troubleshooting | Run the troubleshooter, apply fixes, send a test log | | Search | Look up members and channels by name | | Tokens | List and revoke API tokens | | Server | Reset the server's configuration | # Get log channel load Source: https://docs.quark.bot/api-reference/log-channels/get-log-channel-load /api-reference/openapi.json get /servers/{guild_id}/config/logging/pacing Returns how many logs per minute are going to each log channel, compared with what Discord accepts. Use it to see whether a channel is over Discord's rate limit. The figures are estimates. # Get log channels Source: https://docs.quark.bot/api-reference/log-channels/get-log-channels /api-reference/openapi.json get /servers/{guild_id}/config/logging/channels Returns the channel each category of log is sent to. # Update log channels Source: https://docs.quark.bot/api-reference/log-channels/update-log-channels /api-reference/openapi.json patch /servers/{guild_id}/config/logging/channels Sets the main log channel or the channel for one or more categories. Include only the fields you want to change. Set a field to a channel ID to send that category there, or to null to make it follow the main channel again. Quark registers its webhook in each channel you set, so it needs Manage Webhooks there. `category_nsfw` is the channel for message logs from age-restricted channels. It only accepts a channel that is age-restricted itself. Set it to null to clear it. # Get logging options Source: https://docs.quark.bot/api-reference/logging-settings/get-logging-options /api-reference/openapi.json get /servers/{guild_id}/config/logging/settings Returns the server-wide logging options. # Get settings for log types Source: https://docs.quark.bot/api-reference/logging-settings/get-settings-for-log-types /api-reference/openapi.json get /servers/{guild_id}/config/logging/settings/{log_id} Returns the settings of every log type that has been customised on this server, not only `log_id`. Pick the row whose `log_type` you want. The response includes webhook credentials for log types that have their own channel. Treat it as sensitive. # Update logging options Source: https://docs.quark.bot/api-reference/logging-settings/update-logging-options /api-reference/openapi.json patch /servers/{guild_id}/config/logging/settings Changes server-wide logging options. Include only the fields you want to change. `format_type` needs Quark Pro or Pro Lite and is rejected without it. `ignore_bot_targets` and `ignore_bot_executors` are saved on any plan but only take effect on Quark Pro or Pro Lite. On the free plan, actions by or to bots are not logged. `log_name`, `log_avatar` and `log_profile_overrides` need Quark Pro or Pro Lite and are rejected with 403 without it. Any of the three can be sent alone: the others keep what is stored. A name Discord would refuse is rejected with 400 and the reason, naming the channel for an entry in `log_profile_overrides`. Nothing is changed when a request is rejected. # Update settings for a log type Source: https://docs.quark.bot/api-reference/logging-settings/update-settings-for-a-log-type /api-reference/openapi.json patch /servers/{guild_id}/config/logging/settings/{log_id} Changes the settings of one log type. On the free plan only `enabled` can be changed. The other fields need Quark Pro or Pro Lite. Send `log_channel` in a request of its own. When it is present, only the channel is changed and the other fields in the same request are ignored. A 202 for `log_channel` does not confirm that the channel was accepted. Read the settings back, or run the troubleshooter, to check. # Export logs as CSV Source: https://docs.quark.bot/api-reference/logs/export-logs-as-csv /api-reference/openapi.json get /servers/{guild_id}/logs/export Returns the logs matching the filters as a CSV file, newest first, up to 50,000 rows, within the history window the server's plan allows. Columns: `timestamp`, `log_id`, `log_type`, `log_name`, `summary`, `executor_id`, `executor_name`, `target_id`, `target_name`, `channel_id`, `channel_name`, `role`, `name`, `reason`, `count`, `content`, `content_after`, `delivered`, `delivery_reason`. # List logs Source: https://docs.quark.bot/api-reference/logs/list-logs /api-reference/openapi.json get /servers/{guild_id}/logs Returns the server's logs, newest first. This is the same data the log viewer shows. How far back you can read depends on the server's plan: the last hour on the free plan and Pro Lite, 30 days on Quark Pro. A request that reaches further back is cut to that window and `walled` is true. # List members in the logs Source: https://docs.quark.bot/api-reference/logs/list-members-in-the-logs /api-reference/openapi.json get /servers/{guild_id}/logs/actors Returns the members who appear in the server's logs within the window its plan allows. Up to 2,000. # Acknowledge a notification Source: https://docs.quark.bot/api-reference/notifications/acknowledge-a-notification /api-reference/openapi.json post /servers/{guild_id}/notifications/{notification_id}/acknowledge Marks one notification as read. # Acknowledge all notifications Source: https://docs.quark.bot/api-reference/notifications/acknowledge-all-notifications /api-reference/openapi.json post /servers/{guild_id}/notifications/acknowledge Marks every notification as read. # List notifications Source: https://docs.quark.bot/api-reference/notifications/list-notifications /api-reference/openapi.json get /servers/{guild_id}/notifications Returns the server's notifications: recent changes to Quark's configuration and who made them. These are what the bell on the dashboard shows. # Search members or channels Source: https://docs.quark.bot/api-reference/search/search-members-or-channels /api-reference/openapi.json get /servers/{guild_id}/search/{structure} Searches the server's members or channels by name. Useful for turning a name into an ID before adding an ignore entry. # Reset the server's configuration Source: https://docs.quark.bot/api-reference/server/reset-the-servers-configuration /api-reference/openapi.json delete /servers/{guild_id} Deletes Quark's entire configuration for the server: log channels, ignore options, per-log settings, automation rules, tags, dashboard access and the server's API token records. It also deletes the history of changes to modlog reasons. This cannot be undone. Tokens created since 29 August 2026 stop working when the reset removes their records. Revoke older tokens first: they are not tied to a record, and once the records are gone they can no longer be listed or revoked. # Create a tag Source: https://docs.quark.bot/api-reference/tags/create-a-tag /api-reference/openapi.json post /servers/{guild_id}/tags Creates a tag. The new tag's ID is not returned. List the tags to find it. A tag needs `content`, an `image`, or both. Servers without Quark Pro can have 25 tags. # Delete a tag Source: https://docs.quark.bot/api-reference/tags/delete-a-tag /api-reference/openapi.json delete /servers/{guild_id}/tags/{tag_id} Deletes a tag. # List tags Source: https://docs.quark.bot/api-reference/tags/list-tags /api-reference/openapi.json get /servers/{guild_id}/config/tags Returns every tag in the server. # Update a tag Source: https://docs.quark.bot/api-reference/tags/update-a-tag /api-reference/openapi.json patch /servers/{guild_id}/tags/{tag_id} Changes a tag's content, colour or image. The name cannot be changed. Send `content` as an empty string to take the text off a tag that has an image. An image cannot be removed once set. A value that fails validation is ignored without an error, except a new `image` that is not a web address, which is a 400. List the tags to confirm the change. # List API tokens Source: https://docs.quark.bot/api-reference/tokens/list-api-tokens /api-reference/openapi.json get /servers/{guild_id}/auth Returns a record of each API token for the server. The tokens themselves are never returned. Tokens are created on the dashboard. Only tokens created under the selected bot are listed. Add `?bot=pro` to see the ones created on the Quark Pro tab. # Revoke an API token Source: https://docs.quark.bot/api-reference/tokens/revoke-an-api-token /api-reference/openapi.json delete /servers/{guild_id}/auth Revokes a token. It stops working immediately. # Apply a fix Source: https://docs.quark.bot/api-reference/troubleshooting/apply-a-fix /api-reference/openapi.json post /servers/{guild_id}/troubleshoot/fix Applies one of the automatic fixes from a troubleshooting report. Send the finding's `fix` object as the request body. # Run the troubleshooter Source: https://docs.quark.bot/api-reference/troubleshooting/run-the-troubleshooter /api-reference/openapi.json get /servers/{guild_id}/troubleshoot Checks the server's configuration, Quark's permissions in each log channel and the delivery path, and returns what it found. This is the report `/troubleshoot` and the dashboard show. # Send a test log Source: https://docs.quark.bot/api-reference/troubleshooting/send-a-test-log /api-reference/openapi.json post /servers/{guild_id}/troubleshoot/test-log Sends one real, visible test log through the full delivery path and reports whether it arrived. Limited to one per server per minute. The response is 200 even if the log did not arrive. Check `ok` and `stage`. # Behaviour Source: https://docs.quark.bot/commands/behaviour The rules each command follows ## Moderation commands The moderation commands that act on a member check the same things before they act: 1. **You** need the matching Discord permission. 2. **Quark** needs the same permission. See [permissions](/permissions#for-commands). 3. The member must be in the server. `/ban`, `/kick`, `/mute` and `/unmute` do not work on someone who has left. 4. Your highest role must be above the member's highest role, unless you own the server. 5. Quark's highest role must also be above the member's. `/unban` and `/purge` only check the first two. For `/purge`, the permission is checked in the channel you run it in. Reasons can be up to 480 characters. The action is recorded in Discord's audit log with your user ID in front of the reason, so Quark's modlog shows you as the moderator and not Quark. ### /ban Bans a member. `delete` removes their messages from the last 1 to 7 days. Leave it out to delete nothing. ### /unban Takes a **user ID**, not a mention, because a banned user is not in the server to be mentioned. ### /kick Removes a member from the server. They can rejoin with an invite. ### /mute and /unmute `/mute` applies a Discord **timeout**. It does not use a "Muted" role. * `time` is a number. `type` is the unit: `minutes`, `hours` or `days`. If you leave `type` out, the unit is days. * Decimals work. `time: 1.5` with `type: hours` is 90 minutes. * The longest timeout is 28 days. That is Discord's limit. * Members with Administrator and the server owner cannot be timed out. `/unmute` removes the timeout. ### /purge Deletes recent messages in the channel where you run it. `count` is 2 to 100. You need **Manage Messages** in that channel: a channel that takes the permission away from your role stops `/purge` there, even if your roles have it across the server. With only `count`, it deletes the last `count` messages, including pinned ones. Add any of these options to delete only the messages that match all of them: | Option | Deletes only | | - | - | | `user` | Messages sent by that member | | `from` | `bots`: messages from bots and webhooks. `humans`: messages from people | | `contains` | Messages whose text contains these words, in any case. Up to 256 characters | | `has` | Messages with `files`, `links`, `embeds` or `mentions`. Links include invites written without `https://` | | `keep_pinned` | Set to true to leave pinned messages alone. Without it, pinned messages are deleted too | * With an option, `count` is how many matching messages to delete. Quark looks back through up to 500 messages to find them, and stops early at messages 14 days old. * If it finds fewer than `count`, the reply says how many it deleted and how many messages it looked through. * Messages older than 14 days are skipped. Discord does not allow them to be deleted in bulk. * The reply tells you how many messages were actually deleted. ## Buttons on logs Buttons are not restricted the way commands are. Anyone who can see the log can press one, so Quark checks permissions itself where it matters. | Button | Who can use it | | - | - | | Ban, on a join log | Members with **Ban Members**. The ban happens immediately, with no confirmation | | Edit Reason, on a modlog | Members with **Timeout Members**, **Kick Members** or **Ban Members**. Also where [images](#modlog-images) are added and removed | | Lock, on a modlog | Members with **Timeout Members**, **Kick Members**, **Ban Members** or **Manage Server**. The lock happens immediately, with no confirmation, and cannot be undone | | History, on a modlog | The same members as Lock. The reply is only visible to them | | User ID, [Show Edits](#show-edits), View Full New Permissions, Customize | Anyone who can see the log | | An action button from a [log format](/dashboard/formats#who-can-press-a-button), or a choice in its actions menu | Members with the Discord permission for each action the button takes, and one of the roles the button is kept to, if it has any. A button that posts in a channel also needs them to be able to see and post in that channel. A button cannot moderate or change the roles of the person pressing it | | Get developer updates, on the log channel confirmation | Members with **Manage Server** or **Manage Channels** | ### Modlog reasons **Edit Reason** changes the reason shown on Quark's log. It does not change Discord's audit log. It edits the modlog it is pressed on, whichever channel that is in, including a modlog type that has been given a channel of its own. * Each edit adds a line under the reason: "Edited by", the moderator and the time. From the second edit the line counts the edits and names the last editor. * **Lock** stops the reason being edited, permanently. Edit Reason and Lock are removed from the modlog, leaving History. Nobody can unlock it, whatever their permissions. * **History** appears after the first edit, lock or change to the modlog's images. * Your server can also lock every reason after a set time, or switch editing off. See [modlog reasons](/logs/options#modlog-reasons). When that setting is what stops an edit, Lock does nothing and the reply says why. * Modlogs posted before these buttons existed have only Edit Reason. They gain the others the first time their reason is edited. * On a busy channel, a modlog can be posted in the same message as other logs. See [rate limits](/logs/behaviour#rate-limits). It is then posted without Edit Reason and Lock. On an older message that holds several logs and still has the buttons, Edit Reason replies that the modlog shares its message with other logs and its reason can't be edited. Lock and History still work there, and apply to the whole message. | | Free and Pro Lite | Quark Pro | | - | - | - | | History shows | The latest change: who, when, and whether it was an edit, a lock, or images added or removed. Earlier changes are counted | The last ten changes. Each edit shows the reason before and after, and each change to the images shows the file names | Every edit, lock and change to the images is recorded on every plan. The plan only decides how much of the record History shows. See [data](/data/behaviour#modlog-reason-history) for how long it is kept. ### Modlog images **Edit Reason** is also where a moderator adds images to a modlog, such as a screenshot of what the member did. The form it opens has the reason, an **Images** field and, once the modlog has images, a **Remove the images already attached** tick box. * A modlog can hold up to 4 images. Each can be up to 6 MB and has to be a PNG, JPEG, GIF or WebP. * The images are attached to the modlog's message in your channel. Quark does not keep a copy of them. See [data](/data/behaviour#modlog-reason-history). * To add images without changing the reason, leave the reason as it is. If you empty the reason box, the reason becomes "\[no reason provided]". * Removing takes off every image on the modlog. To replace them, tick the box and add the new ones in the same form. * If an image is too large, is not an image, or would take the modlog past 4, nothing is changed, the reason included. The reply says which it was. * Adding images takes a few seconds. Quark replies once the modlog has been updated. * Changing the images does not add an "Edited by" line. It is recorded in **History**. Images follow the same rules as the reason. The same members can change them, and they cannot be added or removed once the modlog is locked, once your server's [modlog reasons](/logs/options#modlog-reasons) setting has stopped edits, or on a modlog that shares its message with other logs. A locked modlog keeps the images it has. Images are on every plan. ## See initial reactors Right-click a message, or long-press it on a phone, then choose **Apps → See initial reactors**. Quark tells you who added each reaction first. It only works while Quark still has the message stored. See [message age](/logs/behaviour#message-age). ## Get IDs Right-click a log, or long-press it on a phone, then choose **Apps → Get IDs**. Quark replies, only to you, with every ID in that log: the members, roles and channels it mentions, the ID in its footer, and each author on a Multiple Messages Deleted log. * Each ID is listed next to a mention, so you can see whose it is. Nobody is notified. * Under the list is a numbered button for each ID. Press one and Quark replies with that ID alone, which is easy to copy on a phone. * A log with a single ID gets that ID as the whole reply. * On a modlog, the member and the moderator are labelled **User** and **Moderator**. On other logs the IDs are not labelled, so go by the mention. * Up to 20 IDs are listed. Any beyond that are counted at the end. It works whether or not the **User ID** button is switched on for your logs, and it also gives you the IDs the button does not, such as the moderator's. It only works on a log posted by the bot whose command you chose. On any other message Quark replies that it is not a valid Quark log. ## Report log issue For a log that looks wrong: the wrong moderator, a missing detail, a layout that broke. Right-click the log, or long-press it on a phone, choose **Apps → Report log issue**, and say what is wrong in up to 1,000 characters. Quark sends its developers: * What you wrote. * A copy of the log: its text, its embeds and buttons, and the names and sizes of any files on it. The files themselves, and the addresses of images and avatars, are left out. * Your server's ID, language and plan, your user ID, and the IDs of the log's channel, its message and the webhook that posted it. > [!WARNING] > > The copy includes everything written in the log, such as the content of a deleted message. Only report a log you are happy for Quark's developers to read. * The reply gives you a reference. Mention it in the [support server](https://quark.bot/support) to follow the report up. * Each person can send one report a minute in a server. * The form can be sent for up to an hour after you open it. After that, start again from the log's menu. * Quark holds the copy of the log while the form is open, and removes it once the report is sent or the hour is up. Like Get IDs, it only works on a log posted by the bot whose command you chose. ## Show Edits Press **Show Edits** on a Message Edited log, or right-click the log, or long-press it on a phone, and choose **Apps → Show edits**. Quark replies, only to you, with the message as it was after the edit, with what was added in **bold** and what was removed ~~struck through~~. * The comparison is word by word. Long stretches that did not change are cut down to ten words either side of each change. * Links, custom emojis and mentions are kept whole. Nobody mentioned in the message is notified. * When the log holds only the start of a long message, Quark fetches the message for the rest. If it has been edited again since, the comparison covers what the log holds and says the rest was cut. * The button is on every Message Edited log that holds both versions of the message, where they differ. It is not on a log whose original Quark did not have, or held back for Quark Pro, or a log too long to hold both versions. * **Show edits** in the Apps menu is for edit logs posted before the button was on every one, such as an edit of a single line or a log posted as text. It reads Quark's standard Message Edited log. On a log in a [format](/dashboard/formats#buttons-a-format-leaves-off) that leaves the button off, it replies that it can't show the changes for this message. * Each person can ask for one comparison every few seconds, with the button and the command together. Asking sooner gets "You're doing that too fast". Anyone who can see the log can press the button. The command is shown by default to members with **Manage Messages**. ## /language Sets the language Quark uses for everything in your server, including logs. See [languages](/languages/overview). ## /debug Sends a report to Quark's developers containing your server ID, which permissions Quark has, your plan, and Quark's configuration for your server. Only run it when support asks you to. ## /vote Shows the link to vote for Quark on Top.gg and what your votes have unlocked. See [voting](/subscriptions/voting). ## /premium On a server without a plan, explains Quark Pro. On a server with one, links to [getting started with a subscription](/subscriptions/overview#getting-started). # List Source: https://docs.quark.bot/commands/list Every Quark command, who can use it, and its options All commands are slash commands, apart from the ones in the menu you get by right-clicking (or long-pressing) a message or a member and choosing **Apps**. They are marked *message menu* or *user menu* below. Commands only work inside a server, not in DMs. Replies are only visible to you, with two exceptions: the tag posted by `/tags send`, and `/troubleshoot` when you set `share` to true. | Command | What it does | Who can use it by default | Options | | - | - | - | - | | `/help` | Get help with Quark | Everyone | None | | `/commands` | See a list of Quark's commands | Everyone | None | | `/invite` | Invite Quark to your server | Everyone | None | | `/privacy` | View Quark's privacy policy | Everyone | None | | `/ban` | Ban a user | Ban Members | `user` (user, required) `reason` (text, optional, up to 480 characters) `delete` (whole number, optional, 1 to 7) | | `/unban` | Unban a user | Ban Members | `user-id` (text, required) `reason` (text, optional, up to 480 characters) | | `/kick` | Kick a user | Kick Members | `user` (user, required) `reason` (text, optional, up to 480 characters) | | `/mute` | Mute a user | Timeout Members | `user` (user, required) `time` (number, required) `type` (text, optional, `minutes`, `hours`, `days`) `reason` (text, optional, up to 480 characters) | | `/unmute` | Unmute a user | Timeout Members | `user` (user, required) `reason` (text, optional, up to 480 characters) | | `/ping` | Pong? | Everyone | None | | `/purge` | Purge channel messages | Manage Messages | `count` (number, required, 2 to 100) `user` (user, optional) `from` (text, optional, `bots`, `humans`) `contains` (text, optional, up to 256 characters) `has` (text, optional, `files`, `links`, `embeds`, `mentions`) `keep_pinned` (true / false, optional) | | `/tags send` | Send a tag | Kick Members and Manage Messages | `tag` (text, required) `user` (user, optional) | | `/tags list` | List all tags | Kick Members and Manage Messages | None | | `/tags help` | Get help with tags | Kick Members and Manage Messages | None | | `/language` | Change Quark's language | Manage Channels and Manage Server | `language` (text, required) | | `/logging` | Configure logging settings | Manage Channels and Manage Server | None | | `/setup` | Set up logging, tickets, moderation and auto-mod | Manage Channels and Manage Server | `feature` (text, optional, `logging`, `tickets`, `moderation`, `automod`) | | `/debug` | Generate a debug report for this server | Manage Channels and Manage Server | `share` (true / false, required) | | `/dashboard` | Visit Quark's web dashboard | Manage Channels and Manage Server | None | | **See initial reactors** (message menu) | Show who first added each reaction to a message | Manage Channels and Manage Server | None | | `/premium` | Get information about the premium subscriptions Quark has | Manage Channels and Manage Server | None | | `/troubleshoot` | Find out why logs are missing in this server | Manage Channels and Manage Server | `share` (true / false, optional) | | `/vote` | Vote for Quark on Top.gg - unlocks Pro Lite for this server for a day | Everyone | None | | **Get IDs** (message menu) | List the IDs in a log | Manage Messages | None | | **Report log issue** (message menu) | Send a log that looks wrong to Quark's developers | Manage Channels and Manage Server | None | | **Show edits** (message menu) | Show what changed in an edited message, word by word | Manage Messages | None | | `/warn` | Warn a member, and run the server's warn steps | Timeout Members | `member` (user, required) `reason` (text, required, up to 1000 characters) `dm` (true / false, optional) `expires` (text, optional, `30d`, `90d`, `1y`, `never`) | | `/profile` | See a member's warns, cases and appeals | Timeout Members | `member` (user, required) | | **Moderation profile** (user menu) | See a member's warns, cases and appeals | Timeout Members | None | | **Save as evidence** (message menu) | Save a log with a case as evidence (Quark Pro) | Timeout Members | None | | **Send to review** (message menu) | Put a message in the review queue for a moderator to decide | Timeout Members | None | | `/ticket open` | Open a ticket | Everyone | `category` (text, required) | | `/ticket claim` | Claim this ticket | Everyone | None | | `/ticket add` | Add someone to this ticket | Everyone | `member` (user, required) | | `/ticket close` | Close this ticket | Everyone | `reason` (text, optional, up to 500 characters) | | `/ticket reopen` | Reopen this ticket | Everyone | None | | `/ticket transcript` | Download this ticket's transcript | Everyone | None | | `/ticket reply` | Send a Quark tag or a saved reply | Everyone | `tag` (text, optional) `macro` (text, optional) | | `/ticket note` | Add a note only staff can see | Everyone | `text` (text, required, up to 2000 characters) | | `/ticket priority` | Set this ticket's priority | Everyone | `level` (text, required, `low`, `normal`, `high`, `urgent`) | | `/ticket wait` | Mark or unmark this ticket as waiting on the member | Everyone | None | | `/ticket move` | Move this ticket to another category | Everyone | `category` (text, required) | | `/ticket merge` | Merge this ticket into another (Quark Pro) | Everyone | `into` (whole number, required) | | `/ticket keep-open` | Turn auto-close off or back on for this ticket | Everyone | None | | `/ticket remind` | Set yourself a private reminder about this ticket (Quark Pro) | Everyone | `when` (text, optional, up to 40 characters) `note` (text, optional, up to 300 characters) | | `/ticket github` | Send this ticket to GitHub as an issue (Quark Enterprise) | Everyone | `repo` (text, optional, up to 140 characters) | | **Send to Jira** (message menu) | Send a message to Jira as an issue (Quark Enterprise) | Manage Messages | None | | **Send to Linear** (message menu) | Send a message to Linear as an issue (Quark Enterprise) | Manage Messages | None | | **Block image or file** (message menu) | Block an image or file so Auto-mod catches it when it is posted again | Manage Messages | None | | `/shift start` | Start a shift | Timeout Members | None | | `/shift end` | End your shift | Timeout Members | None | | `/shift status` | See your shift and this week's time | Timeout Members | None | | `/mod-report` | See how moderation is going in this server | Manage Server | `days` (whole number, optional, `7`, `30`) | "Who can use it by default" is the Discord permission a member needs before the command shows up for them. Where two permissions are listed, the member needs both. Administrators can use everything. You can change who sees each command in **Server Settings → Integrations → Quark**. > [!NOTE] > > If your Discord app is not set to English, some command names are translated. `/ban` is `/verbannen` in Dutch, for example. See [how commands behave](/commands/behaviour) for the rules each moderation command follows and what the message menu commands do, and [tags](/commands/tags) for `/tags`. # Overview Source: https://docs.quark.bot/commands/overview What Quark commands are for Logging is Quark's job, and most of it is set up on the dashboard. The commands are there for the things that are quicker in Discord. | For | Commands | | - | - | | Setting up and fixing logging | `/logging`, `/troubleshoot`, `/dashboard`, `/language`, `/debug` | | Moderation | `/ban`, `/unban`, `/kick`, `/mute`, `/unmute`, `/purge` | | Tags | `/tags send`, `/tags list`, `/tags help` | | Information | `/help`, `/commands`, `/invite`, `/privacy`, `/premium`, `/vote`, `/ping` | | Reactions | **See initial reactors**, in a message's **Apps** menu | | Logs | **Get IDs** and **Report log issue**, in a log's **Apps** menu | See the [list](/commands/list) for every option and who can use each command. ## Things to know * Commands only work in a server, not in DMs. * Replies are visible only to you, apart from tags and a shared `/troubleshoot` report. * Most commands are hidden from members who do not have the permission they need. A member who cannot see `/ban` cannot use it. * If the Quark Pro bot is also in your server, it has its own copy of each command. A command acts on the bot you run it from. > [!TIP] > > To change who sees a command, or to hide Quark's commands completely, go to **Server Settings → Integrations → Quark** in Discord. The moderation commands and `/tags send` still check the Discord permission listed for them, so this setting can restrict them but not open them up. ## The two you will use most **`/logging`** shows where each category of log goes and lets you change it: set the main channel, give a category its own channel, or switch categories and single log types on and off. Ignore options, formats and colours are on the dashboard. See [where logs go](/logs/overview#where-logs-go). **`/troubleshoot`** checks your setup and tells you why logs are missing. See [troubleshooting](/troubleshooting). # Tags Source: https://docs.quark.bot/commands/tags Saved answers your staff can post with one command A tag is a saved message. Create it once on the dashboard, and your staff can post it in any channel with `/tags send`. Tags are useful for rules, FAQs, appeal instructions and anything else you find yourself typing again and again. ## Create a tag Tags are created and edited on the dashboard, not in Discord. **1. Open Tags** On the [dashboard](https://quark.bot/dashboard), open your server and choose **Tags** in the sidebar. **2. Press New Tag** Fill in the fields: | Field | Rules | | - | - | | Name | Up to 31 characters. Saved in lower case. Cannot be changed later | | Content | Up to 4,095 characters. Markdown, links and emojis work. Leave it empty for a tag that is only an image | | Image link | A direct link to an image, starting with `https://`, up to 255 characters. Use an image hosted on Imgur or Discord. Optional when the tag has content | | Colour | Optional | That is an **Embed** tag: text, a colour and one picture. Switch to **Components** for a tag made of boxes, pictures and buttons. See [layouts](#layouts). **3. Save** The tag is available in Discord straight away. ## Use a tag ``` /tags send tag:rules /tags send tag:rules user:@someone ``` * `tag` autocompletes as you type. * `user` mentions a member along with the tag, so they are notified. * The tag is posted for everyone in the channel, as an embed or as its [layout](#layouts). You get a private confirmation. `/tags list` shows every tag in the server. ## Layouts Switch a tag from **Embed** to **Components** to lay it out with Discord's components instead of one embed. A tag with a layout is sent as a Components message, with buttons that open links or do things when they are pressed. The preview on the right shows it as Discord will. A layout is made of parts, in order: | Part | What it is | | - | - | | Box | A container with a colour down its side, holding up to 10 of the other parts. Can be marked as a spoiler | | Text | Markdown, links and emoji | | Text with a picture | Text with a thumbnail, or a button, beside it | | Media gallery | Up to 10 pictures, each with alt text and a spoiler switch | | Divider | A line or a gap, small or large | | Buttons | A row of up to 5 buttons | Pictures are links, as on an embed tag. Limits: 40 parts, 25 buttons, 3,880 characters of text across the whole tag (Discord allows 4,000, and 120 are kept for the people a tag is sent to), and Discord's own limit of 40 components in a message. The editor says when something is over. ### Buttons A button is either a **link** (a label and a web address) or an **action**. An action button runs up to 5 steps, in order, when it is pressed. If one cannot be done, the rest are not. | Step | Who it acts on | | - | - | | Reply only to the presser | The presser | | Send the presser a direct message | The presser | | Give or take a role from the presser | The presser. Give, take, or give-if-they-don't-have-it-and-take-if-they-do | | Send a message to a channel | A channel you choose, with an optional role ping | | Send the person it was sent to a direct message | The person the tag was sent to | | Give or take a role from the person it was sent to | The person the tag was sent to | | Time out, remove a timeout, kick, ban or unban | The person the tag was sent to. A timeout is up to 28 days | "The person it was sent to" is the first member the tag was sent to with `/tags send tag:… user:@someone`. On a tag sent to nobody, those steps say so and do nothing. **Who can press.** The person pressing is who the button acts for, as with [action buttons on logs](/dashboard/formats#who-can-press-a-button): * A step on the presser themself needs no permission: a reply, a direct message to them, or a role they give or take from themself. That is what makes self-service buttons possible, such as "Get the Announcements role". Saving a button that hands out a role still needs Manage Roles, whoever the role goes to. * A role the presser takes for themself has to be one Quark can safely hand out: not managed by an integration, below Quark's highest role, and carrying no moderation or management permission — nor Mention Everyone, Mute, Deafen or Move Members, Manage Nicknames, Manage Events, Create Expressions or Events, or View Audit Log. Otherwise the reply says why not. * Every other step needs the Discord permission it would take by hand: Timeout Members to message a channel, send someone else a direct message, or time out; Kick Members to kick; Ban Members to ban or unban; Manage Roles to change someone else's roles. The server owner can always press; Administrator covers the permissions but not **Only certain roles**. * **Only certain roles** narrows a button to people with one of up to 10 roles, on top of the permissions. * A button that moderates opens a confirmation box first, which lists exactly what will happen. * Quark needs its own permission for each step, and the role hierarchy applies as it does for a rule. **Messages.** A server's buttons, on tags and logs together, send one member at most 3 direct messages an hour and at most 60 messages an hour in all. A role is pinged at most once every 30 seconds. A direct message from a button carries a line saying which server it came from. **What is logged.** A press that did something is recorded as a **Rule Action** log, titled "Tag Button Pressed". Moderation done from a button is logged as usual and names the person who pressed. Buttons keep working on tags already sent, and rewording a reply or a message changes nothing. A button edited to do something else — different steps, another role or channel — does nothing on the messages sent before the change; send the tag again to use it. A button taken off its tag, or a tag that was deleted, answers that it no longer does anything. ### Tags and automations Two automation triggers are about tags: **Tag Sent**, when a tag is sent, and **Tag Button Pressed**, when one of its buttons is pressed. The **Automations** section at the bottom of a tag lists the rules about it, and **New automation** starts one with the tag already chosen. See [automations](/dashboard/automations#a-tag-is-sent-a-button-is-pressed). ## Who can use tags By default, members need both **Kick Members** and **Manage Messages** to see `/tags`. You can change who sees it in **Server Settings → Integrations → Quark**, but `/tags send` always needs both permissions, or Administrator. On the dashboard, anyone who manages the server in Discord can create and edit tags, as can anyone given **Manage tags** under [dashboard access](/dashboard/access). ## Share a tag with a link Open the tag on the **Tags** page and press **Share**, then switch the link on. The link looks like `quark.bot/tags/welcome-pack-7kq2xd`. A new tag has to be saved before it can be shared. * Anyone with the link can see the tag without signing in, and add a copy to a server they manage. * The link carries the tag's name, text, colour and image, and nothing else: not the server's name, its members or who wrote it. Mentions and image links in the text are shared as written, so a mention still carries the ID it mentions. * A tag with a [layout](#layouts) shares its parts and its link buttons. Action buttons are left out, because their steps name roles and channels of your server. * The link always shows the latest saved version. Servers that already added it keep the copy they took. * Switch the link off in the same place. The link then doesn't open. Copies already added stay. * A tag that is shared shows **Shared** on its button. * If Quark switches a link off after a report, it says **Link switched off by Quark**. To list a tag where anyone can find it, share it on the [Marketplace](/dashboard/marketplace) instead. ## Bundles A bundle is a set of tags shared with one link, such as a welcome pack. Bundles are under the tag list on the **Tags** page. * Press **New Bundle**, give it a name of up to 40 characters, and choose its tags. * A bundle holds up to 25 tags, and a server can have up to 25 bundles. * **Share** on a bundle works as it does on a tag. The link carries the bundle's name, and each tag's name, text, colour and image. * Deleting a bundle leaves its tags as they are. Its link stops working for good. ## Add tags from a link Press **Add from a link** on the **Tags** page and paste a link to a shared tag or bundle. You see each tag, and what would happen to it here, before anything is added. Untick the ones you don't want. You can also open the link itself and press **Add to a server**. Sign in with Discord, then pick a server you manage tags in that has Quark. If both Quark and Quark Pro are there, pick which one: each has its own tags. * A tag whose name the server already has is left out. Your own tag is not touched. * The [tag limit](#limits) still applies. On the free plan and Pro Lite a server holds 25 tags, so only as many as fit are added and the rest are left out. * Only what you were shown is added. If the link's tags changed after you looked, nothing is added and you are shown what the link leads to now. * The tags are a copy. Editing or deleting the shared tag later does not change them. ## Who can share tags Anyone who can see the server's tags on the dashboard can see their links. Switching a link on or off, making and changing bundles, and adding tags from a link need the same permission as editing tags: managing the server in Discord, or **Manage tags** under [dashboard access](/dashboard/access). ## Limits | | Free and Pro Lite | Quark Pro | | - | - | - | | Tags per server | 25 | Unlimited | | Bundles per server | 25 | 25 | | Tags in a bundle | 25 | 25 | Creating, editing and deleting a tag each produce a log in the **Quark Events** category. # Sharing access Source: https://docs.quark.bot/dashboard/access Give a role or a person part of the dashboard without giving them Manage Server Anyone with Administrator, Manage Server, Manage Channels or Manage Webhooks in your server already has the full dashboard. Dashboard access is for everyone else: moderators who should read logs, or a helper who should manage ignore lists, without getting Discord permissions they do not need. ## Give someone access **1. Open Dashboard Access** On the dashboard, open your server and go to **Settings → Dashboard Access**. **2. Choose who** Under **Give someone access**, pick **A role** or **One person**. Search for the role, or type a member's name or paste their user ID. **3. Choose what they can do** Pick a preset, or pick **Custom** and tick individual permissions. **4. Press Give access** Access starts immediately. If you cannot find the person in the member list, press **Create an invite link instead**. The link works once and expires after seven days. The person opens it, signs in with Discord and presses **Accept**. They must already be a member of the server. You can have up to five unused links at a time. ## Presets | Preset | What it allows | | - | - | | Log viewer | Read the log viewer, including history | | Log analyst | Read and export logs, and see analytics | | Moderator | Everything a log analyst has, plus the ignore lists and per-type toggles | | Log configurator | A moderator, plus which channel each log goes to | | Full access | Everything on the dashboard except managing access, API tokens and billing | A grant that uses a preset picks up new features added to that preset later. A **Custom** grant stays exactly as you set it. The individual permissions for a custom grant are: View logs, View log history, Export logs, View configuration, Manage log channels, Manage log settings, Manage tags, Manage server settings, View analytics and Manage automations. **Manage log settings** covers the ignore rules, the options under Logging → Other, the settings of each log type, and creating, editing, sharing and choosing [log formats](/dashboard/formats). The Moderator, Log configurator and Full access presets include it. **Manage tags** also covers sharing tags with a link, tag bundles and adding tags from a link. On the [Marketplace](/dashboard/marketplace), sharing or adding tags and bundles needs Manage tags, formats and ignore rules need Manage log settings, and automations and lists need Manage automations. **Manage automations** lets someone create, edit and delete [automation](/dashboard/automations) rules. Of the presets, only Full access includes it. Moderator and Log configurator can see the rules but not change them. Adding or changing an [action button](/dashboard/formats#who-can-add-or-change-one) on a log format needs it too, as well as Manage log settings. ## Limits | | Free and Pro Lite | Quark Pro | | - | - | - | | People or roles with access | 3 | 50 | A role counts once, however many members have it. ## Rules * Only people who manage the server in Discord can give, change or revoke access. * Access never unlocks a paid feature. Log history and export still depend on the server's [plan](/subscriptions/comparison). * Access never replaces a Discord permission. To save an automation rule that times out, kicks, bans, deletes messages, changes roles or sends direct messages, the person also needs the matching permission in Discord. See [automations](/dashboard/automations#who-can-view-and-edit-rules). The same goes for an [action button](/dashboard/formats#who-can-add-or-change-one) on a log format. * On a server that has such a rule, the same permission is needed for a logging change that lets more be logged, such as removing an ignore rule or switching a log type on. This applies to people who manage the server too. See [changes that let more logs reach a rule](/dashboard/automations#changes-that-let-more-logs-reach-a-rule). * Managing access, creating API tokens, resetting the server and billing can never be shared. * The webhooks Quark posts logs through are never shown to someone with shared access, whatever they can see. * The **bell** is read-only for someone with shared access, and does not list changes to dashboard access. Only people who manage the server can mark notifications as read. * If you remove the role from a member in Discord, their access goes within about 30 seconds. If they leave the server, it goes too. * Every change is recorded as a **Dashboard Access Changed** log in your Quark Events channel. The log names the preset and each permission that was given. ## Change or revoke access The table under **Dashboard Access** lists everyone with access. Use **Change permissions** or **Revoke** on their row. ## What it looks like for them A shared server appears under **Shared with you** on their [dashboard](https://quark.bot/dashboard). If their access includes configuration, it opens the dashboard. Otherwise it opens the log viewer. Pages they can see but not change are marked read-only. # Automations Source: https://docs.quark.bot/dashboard/automations Rules that do something extra when a log is produced An automation is a rule that watches the logs Quark already sends, or messages being sent and reactions being added, and acts when one matches. A rule can post an alert, add a notice to the log, hold the log back, send a copy of it to another channel, forward, reply to or react to the message, moderate members and change channels. Every action is on every plan, except changing the log's colour, which needs Pro Lite or Quark Pro. Plans differ in how many rules you can have: see [what each plan gets](#what-each-plan-gets). A rule acts on its own. To have a moderator decide each time, put an [action button](/dashboard/formats#action-buttons) on the log with Quark Pro. It is made of the same conditions and actions, and runs when someone presses it. Rules are on the dashboard under **Automations** in the sidebar. There is also an **Open Automations** button at the bottom of **Logging → Ignore Rules**. The Quark and Quark Pro bots each have their own rules. ![The Automations page, listing five rules. Each rule is one sentence with a switch, and shows how often it ran this week](https://mintcdn.com/quarkbot/Tm98o72h1leeWJCy/images/automations/list.png?fit=max\&auto=format\&n=Tm98o72h1leeWJCy\&q=85\&s=7be94dc5e7dcd803e785eae9a7e95467) ## Create a rule **1. Open Automations and press New rule** Choose **Start from scratch**, or one of the ideas under **Or start from an idea**. An idea opens with its channel, role or member left blank for you to fill in. See [starters](#starters). **2. Fill in the sentence** A rule is one sentence in three parts: **When** this is logged, **And only if** something is true, **Then** do this. Press any highlighted part to change it. **3. Check what it does** The panel beside the rule reads it back **In plain English**, shows **What it does** on a sample log, and has a **Try it** button. For a first day, switch **Dry run** on. **4. Press Save rule** The rule starts running straight away. Use the switch on its row to turn it off. ![The rule builder. On the left, the When, And only if and Then blocks of a rule that alerts a channel when a moderator is banned. On the right, the rule in plain English and a preview of the log and the alert](https://mintcdn.com/quarkbot/Tm98o72h1leeWJCy/images/automations/builder.png?fit=max\&auto=format\&n=Tm98o72h1leeWJCy\&q=85\&s=6c7ed2297361b5ca35f111efe433b373) ## What a rule is made of ### When The logs the rule watches: any [log type](/logs/types), or **Anything in** a whole category. A rule can watch up to 10. It can also be set off by something Quark does not log: see [a message is sent, a reaction is added](#a-message-is-sent-a-reaction-is-added). A rule cannot watch Rule Action, Multiple Voice Channel Events, Multiple Reactions Removed or Multiple Thread Member Events. When voice events, reaction removals or thread joins and leaves are [bundled](/logs/behaviour#bundling) into one log, each event still runs the rules that watch its own log type. An event a rule holds back is left out of the bundle. A notice is only shown on an event that is sent as a log of its own. #### A message is sent, a reaction is added Two triggers are listed first in the **When** menu, under **Not logged**: | Trigger | What sets it off | | - | - | | Message Sent | Any message someone sends, as it is sent | | Reaction Added | Anyone reacting to a message | Quark posts no log for either. They are things a rule can act on, not logs. * They are named on their own. No **Anything in** category includes them, so a rule on all of Messages does not start running on every message. * Quark's own messages and reactions never set them off, and neither does anything sent through a webhook, which is how every log is posted. Messages Discord posts itself, such as a join or a boost notice, do not count as sent. A reaction on one of Quark's messages or on a webhook message does not set off Reaction Added. * Your [ignore rules](/logs/options#ignore-rules) and log channels play no part: there is no log to leave out or send. * **The person who did it** is the one who sent the message or added the reaction. Discord says who that is, so it is never a guess. There is nobody it happened to, so a rule that only watches these two cannot ask about or act on "the person it happened to". * With no log, a rule on either cannot add a notice, hold a log back, change a log's colour or send a copy of a log. Use an alert or [forward the message](#forwarding-the-message) instead. * The message is still there, so a rule can delete, pin, react to, reply to or forward it, and set slowmode in its channel. * On Reaction Added, **the name** is the emoji: 🚩 itself, or the name of one of your server's own emoji. **The number** is how many of that emoji the message has, this reaction included. A starboard is "the number of reactions is at least 5". If Quark could not read the message, the number is not known, and a condition on it is not met. * On Reaction Added, a rule alerts or forwards about the same message once. A starboard that alerts at 5 stars does not alert again at 6. The rule's other steps, such as a reaction or a timeout, are not held back by this. * **Try your last 50 logs** has nothing to try a rule on these against, because Quark keeps no log of them. **Try it** works. #### A tag is sent, a button is pressed Two more triggers under **Not logged** are about [tags](/commands/tags): | Trigger | What sets it off | | - | - | | Tag Sent | A tag posted with `/tags send` | | Tag Button Pressed | A press of an action button on a tag that did something | * **The person who did it** is whoever sent the tag or pressed the button. **The person it happened to** is the person the tag was sent to with `user:`. On Tag Sent, the rule runs once for each person the tag was sent to, up to 5. A tag sent to nobody has nobody it happened to. * **The name** is the tag's name. On Tag Button Pressed, **the message** is the button's label. * Like Message Sent and Reaction Added, these are not logs: ignore rules and log channels play no part, and a rule on them cannot add a notice, hold a log back, change a log's colour or send a copy. The press itself is still recorded as a Rule Action log. * A tag's **Automations** section lists the rules about it, and **New automation** there starts a rule with the tag already chosen. ### And only if Up to 8 conditions. With none, the rule runs on every log it watches. Each condition after the first is joined to the one above it by **And** or **Or**. Press the word to change it. * **And**: this one and the one above both have to be true. * **Or**: this one starts another set of conditions. Every condition in a set has to be true, and any one set being true is enough. "And" binds tighter than "or", so "A and B, or C" runs when A and B are both true, or when C is. The rule's sentence says ", or " where each new set starts. Either/or between condition blocks is on every plan: it is not an [advanced condition](#advanced-conditions). | Condition | What it tests | | - | - | | Someone has a certain role | The person who did it, or the person it happened to, has or doesn't have a role | | It's a particular person | The person who did it, or the person it happened to, is or is not one member | | A bot did it | The person who did it, or the person it happened to, is or is not a bot | | It happened in a certain channel | In one channel, or outside it. A forum or media channel includes its posts: see [forums](#forums-and-their-posts) | | The message says something | Some text of the log contains, doesn't contain, starts with or matches some text. Case is ignored. In **matches**, `*` stands for any run of characters without a space, so `discord.gift/*` catches every gift link. See [text a rule can read](#text-a-rule-can-read) | | It's on a list of words | Some text of the log **is one of**, **isn't one of**, **contains a word from** or **doesn't contain a word from** a list: your own words, or one of Quark's lists of swear words, scam links and more. See [lists of words](#lists-of-words) | | A number is more or less than | A number from the log is more than, at least, less than, at most, is or isn't a number you choose: how many files the message had, how many messages or members a bulk log covers, how many of an emoji a message has on Reaction Added, the message's age in seconds, or either person's account age in days | | It keeps happening | It has happened a number of times in a window, from 1 minute to 24 hours, for the same member doing it, member it happens to, or channel | | It keeps happening across the server | The same count, kept for the whole server whoever each log is about. 10 joins in a minute is a raid that no one member's count would show | | The account is new | The account is newer than a number of days | | They did it to themselves | The person who did it is, or is not, the person it happened to. Someone taking a role off themselves, or changing their own nickname | | No reason was given | No reason was given, or one was. Only on Ban, Unban, Kick, Timeout and Timeout Removed, which are the logs that carry a reason | | It's a certain time of day | It happened between two times of day, in a time zone you choose. Between 22:00 and 06:00 runs through midnight | | The message is new, or old | The message the log is about is newer, or older, than a length of time from 1 second to 30 days. A message deleted within 10 seconds of being posted, for example | * A condition about something the log does not say is not met. Its opposite is not met either. A rule about "the person who did it" does not run on a log that names nobody. **They did it to themselves** needs a log that names both people, **No reason was given** needs one of the five logs above, and **The message is new, or old** needs a log about one message. The builder warns when none of the logs a rule watches can answer a condition. * **It keeps happening** counts only the logs the rule's other conditions are true for. With "the message contains a link" beside it, 3 times means 3 messages with a link, not 3 messages of any kind. A log one of the other conditions cannot be answered for, such as a deleted message Quark never saw the text of, is not counted. A rule can have two counts. A rule that counts cannot also add a notice, hold the log back or change its colour. * **It's a certain time of day** is read on the clock of the time zone you choose, daylight saving included. The window starts at the first time and stops just before the second. * A message's age is measured from when it was posted to when the log is made. #### Text a rule can read **The message says something** and **It's on a list of words** read one of these. The menu only offers what at least one of the logs the rule watches has. | Text | What it is | | - | - | | the message | The message's text. After an edit, the new text | | the message before the edit | The text before an edit | | the reason | The reason given | | the name | The role, thread, emoji or invite the log names. On Reaction Added, the emoji | | the voice channel status | A voice channel's new status, on Voice Channel Status Updated | | the names of the files | The names of the files on the message, one per line | | the username of the person who did it, or it happened to | Their username | | the ID of the person who did it, or it happened to | Their Discord ID | #### Lists of words A list block checks some text against a list: your own, or one of Quark's. * **Your own words**: type a word or phrase and press Enter. Pasting several at once splits them. A list holds up to 200, each up to 100 characters. * **One of Quark's lists**: choose one in the menu. The builder shows what it has, roughly how many entries, and where it comes from. | How it is checked | True when | | - | - | | is one of, isn't one of | The whole text, or not, is one of the entries | | contains a word from, doesn't contain a word from | A whole word or phrase from the list is in the text, or none is | * Case is ignored, and so are the different ways of writing the same letter, such as full-width letters, and extra spaces. * Words are matched whole: `ass` is not found in "class". A phrase such as `bad word` is found in "a BAD, word". * An entry with no letters or digits, such as an emoji or `:)`, is looked for anywhere in the text. * An entry that is a web address, such as `bit.ly` or `discord.com/invite`, is matched against the web addresses in the text, including the ones it is part of: `bit.ly` catches `go.bit.ly/x`. * An entry written as a file ending, such as `.zip`, matches the end of a file name. `.img` does not catch `IMG_1234.jpg`, and `archive.tar.gz` ends in `.gz`. Use it with **the names of the files**. Quark's lists are on every plan: | List | What it has | Source | | - | - | - | | Swear words and slurs (English) | Swearing, sexual words and slurs in English, about 400. Expect the odd false match on a word with another meaning | [List of Dirty, Naughty, Obscene and Otherwise Bad Words](https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words), CC BY 4.0 | | Swear words (German, Spanish, French, Polish, Portuguese, Turkish) | Swearing and sexual words, one list for each language | The same, CC BY 4.0 | | Scam and phishing links | Web addresses known for fake Nitro, fake Steam and other account-stealing scams aimed at Discord users, about 21,900 | [discord-phishing-links](https://github.com/nikolaischunk/discord-phishing-links), MIT | | Link shorteners | Services that hide where a link really goes, like bit.ly and tinyurl.com, about 1,500 | [url-shorteners](https://github.com/PeterDaveHello/url-shorteners), CC BY-SA 4.0 | | Discord invite links | The addresses a Discord server invite can be written with, like discord.gg and discord.com/invite | Quark | | Risky file types | 40 file endings for programs and scripts that run when opened, like .exe, .scr and .bat. Only the ending of a file name is checked | Quark | #### Forums and their posts A rule about a forum or media channel matches the logs from its posts. Every log from a post names the post, not the forum, so **It happened in a certain channel** with a forum, or `channel == #forum` in Advanced, is true of a message deleted, edited, pinned or reacted to in any of its posts, and of a post created, changed, closed or deleted. Outside the forum, or `channel != #forum`, is false for those logs. * It applies to forum and media channels only. A rule about a text channel does not match logs from threads in it. * If Quark cannot find out which forum a post is in when the log is made, the rule compares the post alone. * **Try your last 50 logs** matches a forum's posts the same way. * When a log names a moderator only because a bot put their ID at the start of its audit log reason, a rule treats the bot as the person who did it. Conditions, counts and `{executor}` all read the bot. Wick, YAGPDB, Sapphire, ProBot and Quark's own commands are the exception. See [your own bot](/logs/integrations#your-own-bot). ### Then Up to 4 actions, carried out in order. | Action | What it does | Plan | | - | - | - | | Tell a channel | Posts a message you write, up to 1,000 characters, in a channel you choose, and can ping one role. Can be sent as an embed: see [alerts as embeds](#alerts-as-embeds) | Free | | Add a notice to the log | Adds a **Notice** line to the log itself, up to 100 characters | Free | | Don't send this log | Holds the log back from your log channel. Not on a rule that watches a Quark Events log: those cannot be held back | Free | | Send a copy of the log to another channel | Posts the log again in a channel you choose. See [copies](#copies) | Free | | Forward the message | Forwards the message the log is about to a channel you choose, as Discord forwards it, pictures and all. See [forwarding the message](#forwarding-the-message) | Free | | Change the log's colour | Gives the log's embed one of ten named colours, or any other you pick | Pro Lite and Quark Pro | | Time someone out | For 60 seconds, 5 or 10 minutes, 1 hour, 1 day or 1 week | Free | | Kick someone | | Free | | Ban someone | | Free | | Reply to the message | Quark answers the message the log is about, in its channel, with text you write, up to 1,000 characters. It pings nobody, the message's author included | Free | | React to the message | Adds one emoji to the message the log is about | Free | | Delete the message | Deletes the message the log is about | Free | | Pin or unpin the message | | Free | | Remove a timeout | Only offered when the rule watches Timeout | Free | | Unban someone | Only offered when the rule watches Ban | Free | | Give or take a role | | Free | | Change someone's nickname | To a nickname of up to 32 characters. Left empty, it puts their own name back | Free | | Send someone a DM | Up to 1,000 characters and 20 lines | Free | | Move someone to another voice channel | Into a voice or stage channel you choose | Free | | Disconnect someone from voice | | Free | | Mute or unmute someone | A server mute in voice | Free | | Deafen or undeafen someone | A server deafen in voice | Free | | Set a voice channel's status | Up to 500 characters. Left empty, it clears the status. Voice channels only | Free | | Set slowmode | Off, or from 5 seconds to 6 hours | Free | | Lock or unlock a channel | See [locking a channel](#locking-a-channel) | Free | | Rename a channel | Up to 100 characters | Free | | Set a channel's topic | Up to 1,024 characters. Left empty, it clears the topic. Text, announcement, forum and media channels | Free | Every action from **Time someone out** down, apart from forwarding, replying and reacting, is a **moderation action**. They are on every plan, the free one included, and the [safety rules](#safety-rules) apply to them on every plan. They are grouped in the menu under **The message**, **People**, **Voice** and **Channels**. * **The message.** Forward, Reply, React, Delete and Pin act on the message the log is about, so they are only offered on a rule that watches nothing but message edits, pins, Message Sent and Reaction Added, where the message still exists. * **People.** Each acts on the person who did it or the person it happened to, whichever you choose. * **Voice.** Moving, disconnecting, muting and deafening are only offered when at least one log the rule watches has someone in voice, such as Joined Channel. They are skipped, at no cost, for someone who is not in voice when the rule acts. * **Channels.** Each changes a channel you choose, or **this log's channel**. This log's channel is only offered when every log the rule watches happens in a channel of that kind: a voice channel for its status, a text channel for its topic, and not a thread for a lock, a new name or a topic. A slowmode, name or topic the channel already has is left alone, and costs nothing. * A channel's name and topic can each be changed by rules once every 5 minutes, because Discord allows only two renames of a channel in 10 minutes. * An alert or a forward can't be sent to a category, a forum, a media channel or a directory: those take no messages of their own. * An action the logs a rule watches can't take is not offered. If a rule already has one, the block says why and the rule can't be saved until it is changed. A rule that holds a log back also stops the rules listed after it for that log. Rules run in the order they are listed. If two rules change the colour of the same log, the one listed first wins. A rule's colour takes the place of the colour set for that log type under **Logging**. A server that has embeds switched off gets its logs as plain text, which has no colour. #### Locking a channel Locking takes these away from @everyone in the channel: Send Messages, Send Messages in Threads, creating threads, and Add Reactions. A voice or stage channel also loses Connect and Speak. The channel can still be read. Unlocking takes those denials off again, and the channel goes back to following the server's roles. Nothing else on the channel's permissions is changed. Categories and threads can't be locked. #### Text from the log An alert, a reply or a direct message, and an alert embed's title, can include these. Quark fills them in from the log. | Token | What it becomes | | - | - | | `{executor}`, `{target}` | The person who did it, and the person it happened to | | `{channel}` | The channel it happened in | | `{reason}` | The reason given | | `{log}` | The log's name | | `{match}` | The word, phrase or link from a [list](#lists-of-words) that matched. Only on a rule with a list condition. A notice can use it too. When the condition is "not on the list" (links not on a list, or `anyNotIn` in an expression), it is part of the message itself, so it counts like `{content}` | | `{message}` | A link to the message the log is about. Discord shows it as the channel and the message, and it pings nobody | | `{content}` | What the message says, as its author wrote it, formatting and line breaks included, up to 1,000 characters. Mentions in it do not ping | The text of an action can't contain hidden characters. A rule that has them can't be saved. `{message}` and `{content}` are only offered when every log the rule watches is about one message that is still there: message edits, pins, Message Sent and Reaction Added. A rule that uses either shows the message to whoever reads the alert, so it is held to the same rules as a forward: see [who can view and edit rules](#who-can-view-and-edit-rules) and [who a rule acts for](#who-a-rule-acts-for). #### Alerts as embeds Switch on **Send as an embed** under **Tell a channel** to post the alert as an embed. * The alert's text is the embed's text. * **The embed's title** is optional, up to 200 characters as you write it, on one line. It can use the tokens above. * The colour is a hex code such as `#C336C3`, or left empty for Discord's own. * The role it pings is mentioned outside the embed, where a ping works. ### Copies A copy is the log as it was posted: its text or embeds, and the server's standard buttons (User ID, Support Server). It is posted by Quark itself, and pings nobody. * A copy never carries the log's files, and leaves out any picture that was one of them, such as a new emoji or an old avatar. * A copy has none of the log's own buttons, such as **Edit Reason** and **Lock** on a ban or **Ban** on a join. Those act on the log or on a member, and stay in your log channel. A copy has no [action buttons](/dashboard/formats#action-buttons) either. * A rule can send copies to up to 3 channels. One log is copied to at most 3 channels, whatever the rules say, and to each channel once. * A copy is never posted in the log's own channel: the channel the log went to, or the one it was held back from. * A log that was sent to your [Age-restricted channel](/logs/overview#age-restricted-channels) is only copied to a channel that is age-restricted too. * With **Don't send this log** in the same rule, the log goes to the copy's channel instead of your log channel. That is how a rule sends some logs somewhere else. * When one event produces two logs, such as a role given and another taken in one change, each log is copied. Anything else the rule does, it does once for the event. * When voice events or reaction removals are [bundled](/logs/behaviour#bundling) into one log, the events in the bundle are not copied. * Saving a rule that sends a copy, or switching one on, also needs **View logs** under [dashboard access](/dashboard/access). See [who can view and edit rules](#who-can-view-and-edit-rules). * A copy is the log. To post the message itself, [forward the message](#forwarding-the-message). ### Forwarding the message **Forward the message** uses Discord's own forward: the message as it was, with its pictures and files, and a link back to it, posted by Quark in the channel you choose. Nobody in it is pinged. * It is only offered when the message is still there: on message edits, pins, Message Sent and Reaction Added. * The channel has to take messages. A category, a forum, a media channel or a directory cannot be chosen. * A message in an age-restricted channel is only forwarded to a channel that is age-restricted too. If Quark cannot tell whether either channel is, the message is not forwarded. * A forward counts as an alert towards the [hourly limits](#safety-rules). * A forward shows the message to whoever reads that channel. Saving the rule needs **View logs**, and the person who last changed the rule must be able to read the channel the message came from each time it runs. See [who can view and edit rules](#who-can-view-and-edit-rules). * If Quark cannot post in the channel, the forward is skipped and the rule's row says so. If Quark cannot tell whether a rule that holds logs back matches a log, because the rule hit an error or ran out of time, the log is sent and the rules listed after it do not run for that log. ## Starters Each idea opens in the builder with its blanks left for you to fill in. **Keep logs quiet** | Starter | Plan | | - | - | | Don't log role changes made by our verification bot | Free | | Don't log roles members give themselves or take off | Free | | Don't log nickname changes unless a moderator made them | Free | | Don't log messages deleted or edited by a bot | Free | | Don't log joins and leaves in the AFK channel | Free | **Get told** | Starter | Plan | | - | - | | Tell a channel when someone reacts 🚩 to a message | Free | | Tell a channel when someone with a role is banned | Free | | Tell a channel when someone with a role leaves | Free | | Tell a channel when an account newer than 7 days joins | Free | | Tell a channel when a webhook is created or a bot is added | Free | | Flag deleted messages that contain a Nitro gift link | Free | | Flag deleted messages that swear, from Quark's list of English swear words | Free | | Alert a channel when one member has 5 messages deleted in 10 minutes | Free | | Turn the log red when an account newer than 7 days joins | Pro Lite and Quark Pro | | Turn the log purple when a deleted message contains a word you choose | Pro Lite and Quark Pro | **Step in** | Starter | What it does | | - | - | | One person deletes 3 channels or roles in a minute | Alerts a channel, and times them out for 1 hour | | A member is timed out 3 times in 24 hours | Tells a channel, and bans them | | A member ghost pings 3 times in 10 minutes | Times them out for 10 minutes | | A message with a known scam link, from Quark's list, is edited or deleted | Flags the log, tells a channel, and times the poster out for 1 hour | | Someone sends a message with a known scam link, from Quark's list | Deletes the message the moment it is sent, times the sender out for 1 hour, and tells a channel | | 10 members join in a minute | Alerts a channel, and locks a channel you choose | | A voice channel's status is set to one of your words | Clears the status, or sets it to one you write | | Time out new accounts that edit a gift link into a message | Times them out for 1 hour and deletes the message | * These starters work on every plan, the free one included. To only be told, remove the moderation action under **Then** before saving. * "Roles members give themselves" are role changes where Discord's audit log names the member as the one who made the change. A role a bot hands out when someone reacts or presses a button was given by the bot. Use the verification bot starter for those. * A ghost ping, for the starter, is a message that mentions a member or a role and that its author deletes within 10 seconds of posting it. It does not catch @everyone or @here. * The starter for someone with a role leaving watches one role. To watch two, such as Staff and Booster, make a second rule for the other role, or use an [advanced condition](#advanced-conditions). ## Dry run and Try it * **Dry run** is a switch on the rule. A rule in dry run counts how often it would have run and does nothing else: no post, no ping, no action. Its row shows the count for the week. * **Try it** runs the rule you are editing against sample logs and marks which would set it off. Nothing is posted. * **Try your last 50 logs**, on Quark Pro, does the same against the last 50 logs of the types the rule watches. Someone with [dashboard access](/dashboard/access) needs View logs and View log history to use it. ## What each plan gets | | Free | Pro Lite | Quark Pro | | - | - | - | - | | Rules | 1 | 3 | 25 | | Alerts, notices, copies, forwards, replies, reactions and holding a log back | Yes | Yes | Yes | | Alerts as embeds, `{message}` and `{content}` | Yes | Yes | Yes | | Message Sent, Reaction Added, Tag Sent and Tag Button Pressed | Yes | Yes | Yes | | Either/or between condition blocks | Yes | Yes | Yes | | Lists of words, including Quark's lists | Yes | Yes | Yes | | Changing a log's colour | No | Yes | Yes | | Moderation actions | Yes | Yes | Yes | | Advanced conditions | No | No | Yes | | Try your last 50 logs | No | No | Yes | A rule that is switched off still counts towards the number. When a plan ends, nothing is deleted. Rules with an [advanced condition](#advanced-conditions) are **Parked** off Quark Pro, and so are rules beyond the plan's number, counted in the order they are listed. On the free plan a rule that changes a log's colour is parked as well. Parked rules run again when the server has the plan. Off Quark Pro, up to 3 rules with an advanced condition that are in dry run are **previews** instead of parked. A preview counts how often it would have run, like any rule in dry run, and does not use up one of the plan's rules. ## Who can view and edit rules | | Who | | - | - | | View | Anyone who manages the server in Discord, and anyone given **View configuration** under [dashboard access](/dashboard/access) | | Edit | Anyone who manages the server in Discord, and anyone given **Manage automations** | | Save or switch on a rule that sends a copy of a log, forwards the message, or uses `{content}`, `{message}`, or `{match}` with a "not on the list" condition | The same, and they also need **View logs**: each shows the log or the message to whoever reads it | Being able to edit rules is not enough for a moderation action. The person saving the rule also needs the matching permission in Discord, and Quark needs its own. | Action | You need in Discord | Quark needs | | - | - | - | | Tell a channel | Nothing extra | View Channel and Send Messages in that channel | | Send a copy of the log to another channel | Nothing extra | View Channel, Send Messages and Embed Links in that channel | | Forward the message | Nothing extra when saving, apart from **View logs**. When it runs, see [who a rule acts for](#who-a-rule-acts-for) | View Channel and Send Messages in that channel | | Time someone out | Timeout Members | Timeout Members | | Kick someone | Kick Members | Kick Members | | Ban someone | Ban Members | Ban Members | | Reply to the message, React to the message | Nothing extra | Read Message History in the message's channel, and Send Messages to reply or Add Reactions to react | | Delete the message | Manage Messages | Manage Messages in the message's channel | | Pin or unpin the message | Manage Messages | Manage Messages or Pin Messages in the message's channel | | Remove a timeout | Timeout Members | Timeout Members | | Unban someone | Ban Members | Ban Members | | Give or take a role | Manage Roles, and the role must be below your own highest role | Manage Roles, and the role must be below Quark's highest role | | Change someone's nickname | Manage Nicknames | Manage Nicknames | | Send someone a DM | Timeout Members | Nothing | | Move someone to another voice channel | Move Members, and View Channel and Connect in the channel they are moved to | Move Members, and Connect in that channel | | Disconnect someone from voice | Move Members | Move Members | | Mute or unmute someone | Mute Members | Mute Members | | Deafen or undeafen someone | Deafen Members | Deafen Members | | Set a voice channel's status, Set slowmode, Rename a channel, Set a channel's topic | Manage Channels in that channel | Manage Channels in that channel. In a thread, Manage Threads covers slowmode and a new name | | Lock or unlock a channel | Manage Roles in that channel | Manage Roles in that channel | * The dashboard's messages call Timeout Members "Moderate Members". It is the same permission. * The permissions that act in a channel are read in that channel: deleting or pinning a message in the message's channel, and the channel actions in the channel they change. A channel that takes a permission away from your roles stops you saving a rule that uses it there. * The server owner can save any rule. Administrator covers the permissions, but not the rule about your highest role. * Only the server owner can save a rule that **gives** a role with a moderation or management permission, or switch it on, rename it or take it out of dry run. Those permissions are Administrator, Manage Server, Manage Channels, Manage Roles, Manage Messages, Manage Webhooks, Manage Expressions, Manage Threads, Kick Members, Ban Members and Timeout Members. Only the role's own permissions are read, not what a channel allows it. Anyone who can edit rules can still switch such a rule off or put it into dry run, and a rule that takes such a role is not restricted this way. * Quark asks Discord for your permissions each time you save a rule with a moderation action, switch it on, take it out of dry run or rename it. If Discord does not answer, the change is refused. * The rule then acts for you. See [who a rule acts for](#who-a-rule-acts-for). * If Quark is missing a permission, the step is skipped and the rule's row says why. See [permissions](/permissions#for-automations). ### Changes that let more logs reach a rule Some changes make a rule run on logs it did not see before, without the rule itself being touched. On a server with a moderation rule, even one that is switched off, each of these needs the Discord permission for every moderation action the server's rules take, and a highest role above any role they give or take: * Changing the order of the rules. * Deleting, switching off, putting into dry run or editing a rule that holds logs back. * Under **Logging**: removing an [ignore rule](/logs/options#ignore-rules), switching a log type or a category on, switching **Actions by bots**, **Actions on bots** or **PluralKit Compatibility** off, giving logs a channel where they had nowhere to go, and setting or clearing the Files channel. The troubleshooter's fixes on the dashboard and [importing settings](/dashboard/overview#import-settings-from-another-server) are checked the same way. * If one of the server's rules gives a role with a moderation or management permission, only the server owner can make these changes. * Changes that leave more out, such as adding an ignore rule or switching a log type off, are never checked. Neither is switching Active Ignore on or off. * Quark asks Discord for your permissions when you make the change. If Discord does not answer, the change is refused. * The Logging pages do not say which permission is missing. They say "You don't have permission to do that." * This is checked on the dashboard. The `/logging` and `/troubleshoot` commands in Discord go by their own permissions. ## Who a rule acts for A rule moderates, forwards and quotes messages on behalf of whoever last changed it: the person who created it, or who last edited it, renamed it, switched it on or off, or put it into or out of dry run. Pressing **Save rule** with nothing changed does not count, and neither does changing the order. Each time a rule is about to moderate, forward the message, or post `{content}` or `{message}`, Quark checks what that person could do themselves in Discord at that moment. | Action | The person who last changed the rule must | | - | - | | Every moderation action | Still be in the server, and not be timed out | | Every moderation action | Still hold the permission in the table above | | Time someone out, kick, ban, remove a timeout, change a nickname | Have a highest role above the member's highest role | | Delete, pin or unpin the message | Have the permission in the channel the message is in | | Move someone to another voice channel | Be able to see and connect to the channel they are moved to | | The channel actions | Have the permission in the channel the rule changes | | Give or take a role | Have a highest role above the role | | Give a role with a moderation or management permission | Be the server owner | | Forward the message, or post an alert, reply or direct message with `{content}`, `{message}`, or `{match}` with a "not on the list" condition | Still be in the server, and have View Channel and Read Message History in the channel the message is in. In a private thread, also have Manage Threads in its channel | * The server owner passes every check. Administrator covers the permissions, but not the two rows about the highest role. * The forward and quote check stops a rule copying messages out of a channel its author cannot read into one they, or others, can. A timeout does not stop it, because a member who is timed out can still read. * For the moderation rows, the permission has to come from one of the person's own roles. One that only @everyone has does not count. For reading a channel, @everyone's View Channel and Read Message History do count. * A message from an age-restricted channel is only forwarded or quoted into a channel that is age-restricted too, and is never quoted in a direct message. If Quark cannot tell whether a channel is age-restricted, the step is skipped. * When a check fails, that step is skipped and uses nothing from the [hourly limits](#safety-rules). Alerts, notices and held-back logs are not affected. ### If a rule stops acting A rule stops moderating when the person who last changed it leaves the server or loses the permission, and for as long as they are timed out. The rule's row says that Quark, or the person who last changed the rule, is missing a permission. The **Rule Action** log in your server says which of the two it is. A rule that forwards or quotes messages skips that step in a channel where the person who last changed it cannot view the channel or read its message history. The row says the same, and the Rule Action log says the rule "could not act in" that channel because "the person who last changed the rule does not have the Discord permission it needs in that channel". Its other steps still run. To fix it, someone who holds the permission edits the rule, or switches it off and on. A timeout also ends on its own. The rule then acts for them. The dashboard does not show who last changed a rule. The **Automation Created**, **Automation Updated** and **Automation Deleted** logs do. A rule that deletes messages shows the same thing after it is set off in a channel where the person who last changed it cannot delete messages. It goes on deleting in the other channels. ## Safety rules **Who a rule never acts on.** A timeout, kick, ban, removed timeout, role change, nickname change or message delete is never carried out on: * the server owner * Quark itself * a member whose highest role is level with or above Quark's highest role * someone who is no longer in the server A timeout, kick or ban, removing a timeout or changing a nickname is also never carried out on a member whose highest role is level with or above that of the person who last changed the rule, unless that person owns the server. See [who a rule acts for](#who-a-rule-acts-for). Moving, disconnecting, muting and deafening are never carried out on the server owner, Quark or someone who is no longer in the server, but they are not held to the role hierarchy, as in Discord: a moderator can mute an admin. **Never on a guess.** A rule does not act on "the person who did it" when Quark only worked out who that was: * On these logs Quark cannot be certain who did it, so a rule that acts on the person who did it cannot be saved: deleted messages, bulk deletes, attachments and polls, Moved, Disconnected, server mutes and deafens, pins, and removed reactions. For a removed reaction, Discord says whose reaction it was and not who removed it. For the others, Quark matches the event to the audit log and can be wrong. * When the moderator was found through [another bot](/logs/integrations), as in "using Sapphire", the step is skipped. Acting on the person it happened to is not affected, apart from two logs. On **Thread Member Joined** and **Thread Member Left**, someone may have been added to a thread because another member mentioned them there, or removed by a moderator, so a rule never acts on the person they happened to. A rule that names either log cannot be saved with an action on the person it happened to. On a rule that watches the whole Messages category, the action is skipped on those two logs. A bulk delete, a pin and a removed reaction have nobody they happened to, so a moderation action does nothing on those logs. Send an alert instead. **Hourly limits.** | | Alerts and copies an hour | Members moderated an hour | | - | - | - | | One rule | 30 | 10 | | The whole server | 120 | 30 | * Moderation is counted in members, not actions. Everything one rule does to the same member in an hour counts once. * One rule acts on the same member at most 20 times an hour. * A member that two rules act on counts once for each rule towards the server's 30. * Each member a rule moderates also uses one of the alerts in the first column. Moderation does not stop when the alerts run out. * A channel action counts once for each channel, and pinning once for each message, in the second column. * A copy of a log, a forward, a reply and a reaction count as alerts. Notices, colours and held-back logs are not counted, and neither is an action that was skipped. * Past a limit, actions are skipped until the next hour. The rule's row says so. **Pings.** A reply never pings anybody. An alert pings only the one role you choose, and never @everyone or @here. A role is pinged at most once every 30 seconds. An alert inside that time is still posted, without the ping. The 30 seconds are shared with [action buttons](/dashboard/formats#what-a-button-can-do) that ping the same role. Mentions in the alert's text, and anything filled in from a log, do not ping. **Direct messages.** * Sent only to people who are in the server, and never to a bot. * Not sent to the person a User Left, Kick, Ban or Bot Removed log is about. They have left. * One rule messages one member at most once every 10 minutes. * Quark adds a last line that the rule cannot remove: "Sent automatically by a rule in" and the server's name. * Members with DMs closed do not get the message. **Also:** * A rule acts once on each event, however many times Discord reports it. * What Quark does itself never sets a rule off. A rule that bans does not trigger a rule that watches bans, and a rule that sets a voice channel's status when a status is set does it once. * A rule's timeout never shortens a longer timeout. * Rules only see logs that pass your [ignore rules](/logs/options#ignore-rules) and have a log channel. A log only goes to another channel when a rule [sends a copy](#copies) there. Message Sent and Reaction Added are not logs, so neither applies to them. ## What is logged | What | Where | | - | - | | An alert, a forward, a reply, a reaction, a moderation action, a rule reaching its hourly limit, a rule that could not act | A **Rule Action** log, in Quark Events | | A rule created, edited, renamed, switched on or off, put into or out of dry run, or deleted | An **Automation Created**, **Automation Updated** or **Automation Deleted** log, with who did it. Updated says only what changed | | A log a rule held back | Not posted to Discord. The [log viewer](/logs/viewer) shows it, marked **Held back by rule** | | A moderation action | Discord's audit log, with the reason `Quark rule:` and the rule's name | * Moderation actions are logged even when the Rule Action log type is switched off. Alerts, forwards, replies, reactions and the other two follow the switch. * A rule reaching its limit, or failing to act, is logged at most once an hour for each rule and reason. * Notices, colours, copies and held-back logs do not produce a Rule Action log. A copy that cannot be posted, because Quark cannot post in the channel or the channel is gone, is said on the rule's row. ## Advanced conditions With Quark Pro, switch **Advanced** on to write the condition as one expression. It can say things the blocks cannot, such as an either/or inside brackets. Switching Advanced off turns the expression back into blocks when it is simple enough: an expression whose "or"s are only between sets of "and"s becomes blocks joined by [Or](#and-only-if). ``` executor.bot && content matches "discord.gift/*" @Staff in target.roles || target.accountAgeDays < 7 count(10m, target) >= 5 content containsAny list("scam-links") status in ["free nitro", "join my server"] fileNames containsAny [".exe", ".scr"] attachments > 3 reason contains executor.id executor == target !reasonGiven && timeBetween("22:00", "06:00", "Europe/London") messageAgeSecs < 10 && content contains "<@" ``` * Join with `&&`, `||`, `!` and brackets. Compare with `==`, `!=`, `<`, `<=`, `>`, `>=`. * Text has `contains`, `startsWith` and `matches`. Put text in double quotes. * A list is written `["a", "b"]`, or `list("profanity-en")` for one of Quark's. `in` asks whether the text is one of the entries, and `containsAny` whether it has one as a whole word, as in [lists of words](#lists-of-words). Quark's lists are `profanity-en`, `profanity-de`, `profanity-es`, `profanity-fr`, `profanity-pl`, `profanity-pt`, `profanity-tr`, `scam-links`, `link-shorteners`, `discord-invites` and `risky-files`. * Write a role or member as `@name` and a channel as `#name`. Test a role with `in`, as in `@Staff in executor.roles`. * `count(10m)` is how many times the rule's logs have happened in the window for the same member doing it. Add `target` or `channel` to count for those instead, or `server` to count for the whole server. * `timeBetween("22:00", "06:00", "Europe/London")` is whether it happened between two times of day. Times are 24-hour, and the zone is an IANA name such as `Europe/London`, `America/New_York` or `UTC`. * An expression can be up to 500 characters. | Field | Type | What it is | | - | - | - | | `executor`, `target` | member | Who did it, who it happened to | | `executor.name`, `target.name` | text | Their username | | `executor.id`, `target.id` | text | Their Discord ID | | `executor.bot`, `target.bot` | yes/no | Whether they are a bot | | `executor.roles`, `target.roles` | roles | The roles they have | | `executor.accountAgeDays`, `target.accountAgeDays` | number | Days since their account was made | | `channel` | channel | Where it happened. Compared with a forum or media channel, it matches the forum's posts too | | `content` | text | The message text. After an edit, the new text | | `contentBefore` | text | The text before an edit | | `reason` | text | The reason given | | `reasonGiven` | yes/no | Whether a reason was given. Only on Ban, Unban, Kick, Timeout and Timeout Removed | | `name` | text | The role, thread, emoji or invite the log names | | `status` | text | A voice channel's new status, on Voice Channel Status Updated | | `fileNames` | text | The names of the files on the message, one per line | | `attachments` | number | How many files the message had | | `messageAgeSecs` | number | Seconds since the message was posted | | `amount` | number | How many messages or members a bulk log covers. On Reaction Added, how many of that emoji the message has | ## The API [API tokens](/api-reference/introduction) cannot read or change automations. Rules are managed on the dashboard only. An Admin token can still change logging settings, and it is not asked for the [Discord permissions](#changes-that-let-more-logs-reach-a-rule) a person on the dashboard needs for those changes. # Log Formats Source: https://docs.quark.bot/dashboard/formats Choose how your logs look, build a format of your own, and share it with a link A format decides how Quark's logs look: an embed or plain text, full or compact, laid out with Discord's components or drawn as a picture, which parts are shown, what the buttons are. Use one of Quark's own formats, or build your own and change one log at a time. Formats are on the dashboard under **Log Formats** in the sidebar, between Log Viewer and Automations. The Quark and Quark Pro bots each have their own formats. A format changes how a log looks. With Quark Pro it can also put [action buttons](#action-buttons) under a log, for a moderator to press. To have a log ping someone, carry a notice or not be sent at all, make a rule in [Automations](/dashboard/automations). ## Quark's formats | Format | What it looks like | | - | - | | Standard | Quark's own embed, with a colour for each kind of log. Every server starts on this | | Standard (no embed) | The same information as a plain message. For channels where embeds are switched off or hard to read | | Compact | A small embed with one or two lines for each log. For busy channels you scan more than you read | | Compact (no embed) | One or two lines of plain text for each log, and no buttons | | Basic | Each log's facts and nothing else: who, what, where and why, with no icons, no name line and only the ID in the small print | | Basic (no embed) | Basic as plain text | | Detailed | Standard with every extra detail a log has: IDs, account ages, when a message was sent and the exact time | | JSON | Each log as JSON in a code block, for another bot to read. See [JSON for other bots](#json-for-other-bots) | | Components | Quark's logs laid out with Discord's newer components: a box in the log's colour, the avatar beside the title, and the buttons inside the message. See [Components and pictures](#components-and-pictures) | | Image cards | Each log drawn as a picture card: the colour and icon of the log, who it was about, and what happened. Quark Pro only. See [Components and pictures](#components-and-pictures) | * **Preview with** chooses the log every format on the page is drawn on. * **Use this format** applies at once to every log, with **Undo**. * **See every log** shows one format on every kind of log Quark sends, with a search box. * Quark's own formats are free on every server, except Image cards, which needs Quark Pro. A format you made needs Pro Lite or Quark Pro to post logs. See [what each plan gets](#what-each-plan-gets). ### What a compact log contains * The title in bold, then one line with the log's details joined by " · ". * For a deleted or edited message, the first line of the message on a quote line underneath, with "…" when there is more. * Lines a format added, and a rule's [notice](/dashboard/automations#then), in full. * Files stay attached. A picture the embed would have shown, such as a new avatar, is attached as a file. * Compact keeps only the log's own buttons, such as Lock, and any [action buttons](#action-buttons). Compact (no embed) has none. * Embeds that were on a deleted message, such as a link preview, a GIF or a bot's embed, are posted with the log, ahead of its line. See [a deleted message's embeds](#a-deleted-messages-embeds). ### Basic and Detailed **Basic** keeps the facts of each log and leaves out the rest: * No icons Quark draws: on the title, the field names, the footer and the buttons. Emoji somebody used in a message, a reason or a name stay. * No name and picture above the title, on any log. * The small print is the ID alone. "Members: 120 | ID: …" becomes "ID: …". * A few fields that are not facts of what happened are left out: **Account created** on User Joined (its new-account warning stays), **Joined**, **Roles** and **Info** on User Left, **Roles** on Bot Removed, the Quark Pro note on Server Upgraded, and **Related Emoji** on Sticker Created. * A picture that shows what changed, such as a new avatar, server icon or sticker, is kept. * **Basic (no embed)** is Quark's own text without its icons, with the last line of small print cut down to the ID. The five logs above are written from Basic's embed instead. * A format that starts from Basic keeps all of this. A footer you write is kept as you wrote it. * **Edit Reason** and **Show Edits** still work on Basic and Basic (no embed) logs. **Detailed** adds every extra detail from [Show extra information](#show-extra-information) that the log has. A format you build can start from any of Quark's formats but JSON. ### JSON for other bots Each log is posted as one JSON object in a code block. Another bot can read the message, take the text between the first line and the last, and parse it. | Key | What it holds | | - | - | | `v` | The version of this shape, `1`. A new key may be added in the same version; a key is never taken away or changed without a new one | | `type` | The log type's number | | `log` | The log type's name | | `time` | When it was logged, in Unix seconds | | `guild` | The server's ID | | `executor`, `target` | Who did it and who it was done to: `id`, `name`, `bot`, and `created` (when the account was made, in Unix seconds) | | `channel`, `role` | `id` and `name` | | `message` | `id` and `created` | | `content`, `contentBefore` | A message's text (after an edit, the new text), and on an edit, what it said before | | `reason`, `name`, `amount`, `attachments` | The reason given, the name of the role, thread, emoji or invite the log is about, a count, and how many files | | `fields` | The log's own fields, each a `name` and `value`, as Quark writes them | | `truncated` | `true` when some text was shortened to fit | * Every key is always there. A key the log has nothing for is `null`. * IDs are strings. Mentions in `fields` are Discord's own (`<@id>`). * A backtick is written as `\u0060`, so nothing in a log can end the code block. * A log too long for one Discord message has its longest text shortened first, ending in "…". IDs, times and the type are never cut. * JSON logs have no buttons, and files are still attached. A deleted message's own embeds are not posted with a JSON log. ### A format for one log type To make one log type look different from the rest, [build a format](#build-your-own) and change that log in it. Individual Log Config no longer has a Format option. A log type that was given one of Quark's formats there before keeps it, and the server's format does not apply to it. **Logging → Individual Log Config** says so for that log type, with a **Follow the server's format** button. Pressing it cannot be undone from there, because a format can no longer be chosen for one log type. On the free plan, a format chosen there before is not used. At the end of **Individual Log Config**, **Formats and Automations** shows which format the log type is posted in and whether that format changes it, with a link that opens it in Log Formats. It also lists the automation rules that watch the log type, each linking to its rule, and **New for this log** starts a rule that watches it. ### A deleted message's embeds When a deleted message had embeds of its own, such as a link preview, a GIF or a bot's embed, they are posted with its log in every format except JSON, Quark's own and the ones you build alike. | Layout | Where they go | | - | - | | Embed | Beside the log's own embed, as on Standard | | Compact embed | Ahead of the log's line | | Plain text, One line of text, Image | Beside the text or the picture | | Components | Drawn as boxes of their own, in each embed's colour with its words and picture, ahead of the design. A Components message cannot hold embeds. Their author, title, field names and footer are shown as written, not as markdown | | JSON | Left out. Another bot reads the JSON | * If adding them would take the log past Discord's limits when the log alone was not, they are left off and the log is posted without them. * The log's files were posted in every layout before, and still are. ## Build your own **1. Press Create a format** Give it a name of up to 40 characters and choose what it **Starts from**: one of Quark's formats, or a copy of one of yours. Names are unique on a server. **2. Pick a log and press Change something** A format changes one log at a time. The log menu is grouped by category and can be searched. A log you leave alone keeps looking the way it does now. **3. Check the two previews** **What Quark posts now** is beside what your format posts. The example menu above them switches between the ways the same log can turn out: with a reason or without, done by a moderator, with a file. Each change is listed as a sentence with **Edit** and **Remove**. **4. Press Save format** Nothing is saved until you do, and leaving with unsaved changes asks first. Saving does not switch your logs over. Go back to **All formats** and press **Use this format**. To rename a format, change **Format name** in the builder and save. The **…** menu on a format's row has **Share**, **Duplicate** and **Delete**. Deleting the format in use puts your logs back on one of Quark's formats, and the message that says so has **Undo**. ### Show extra information Adds something the log knows but leaves out, as a field after the log's own. Only what the log has is offered. | Tick | Field added | | - | - | | Message ID | Message ID | | When the message was sent | Sent | | ID of the member it happened to | Member ID | | Account age of the member it happened to | Account created | | ID of who did it | Done by (ID) | | Account age of who did it | Their account was created | | Channel ID | Channel ID | | The exact time | When | | The name of the log | Log | These field headings are in English whatever your server's [language](/languages/overview). ### Hide or spoiler something Each part of the log can be set to Show, Hide or Spoiler. | Part | Hide | Spoiler | | - | - | - | | The name and picture above the title | Yes | No | | The message text, or the description | Yes | Yes | | Each field, by its name | Yes | Yes | | The picture | Yes | No | | Attached files | Yes | Yes | | The footer | Yes | No | | The time | Yes | No | Hiding the picture also stops its file being posted. A file already marked by [Logging → Other → Spoilers](/logs/options#other-options) is not marked twice. ### Write your own text | Text | Limit | | - | - | | Title | 200 characters. One log at a time | | Lines added under the description | Up to 4, of 300 characters each as written | | Footer | 200 characters | Leave a box empty to keep Quark's wording. The **Put in** chips add a value from the log: | Chip | What it becomes | | - | - | | `{{icon}}` | The log's icon | | `{{target}}` | A mention of who it happened to | | `{{executor}}` | A mention of who did it | | `{{channel}}` | A mention of the channel | | `{{reason}}` | The reason given | | `{{log.name}}` | The name of the log | For a single log, only the chips that log can fill are offered. A deleted message has no `{{reason}}`. ### Change the buttons Choose which buttons a log has and their order: **User ID**, **Support Server**, **Customise**, and **The log's own buttons**, such as Edit Reason and Lock on a modlog. The list starts from the buttons you have switched on under **Logging → Other → Buttons**, and replaces that setting for the logs the format covers. You can add link buttons, and **Jump to message** is ready-made. * A log can have 5 link buttons. A label is up to 40 characters and a link up to 400. * A link has to start with `https://`, with the site's address written out as far as the first `/`. Values from the log can only come after that: `https://example.com/users/{{target.id}}`. * If the log has nothing for a value in a link, the button is left off that log. With Quark Pro you can also add an **Action button**, which does something when it is pressed. See [action buttons](#action-buttons). ### Change the colour or layout | Layout | What it is | | - | - | | Embed | Colour down the side, fields side by side, footer and time | | Plain text | The same information as an ordinary message | | Compact embed | One or two lines inside a small embed | | One line of text | The shortest form. No embed, no buttons | | Components | A box in the log's colour with the avatar beside the title, laid out with Discord's Components V2 | | Image | Quark draws the log as a picture and posts that. Needs Quark Pro | Components and Image start from Quark's own design of the log. To change the design part by part, use [Advanced](#components-and-pictures). On a plan without Quark Pro, Image is shown as **Image (Quark Pro)** and cannot be chosen. The colour is one of twelve swatches, any colour from the picker, or a hex code. Quark gives each kind of log its own colour, and one colour for everything loses that. Plain text has no colour. ### All logs at once **All logs at once** is the last entry in the log menu, for the few things you want on every log, such as the buttons. * What you change on a single log wins over what is set here for its layout, colour, footer and buttons. Hidden parts, extra information and added lines add up, so one log can carry 4 lines from here and 4 of its own. * A title cannot be set for all logs at once, and neither can Advanced. ### Buttons a format leaves off Edit Reason and Show Edits read the log back as Quark lays it out. Where a format moves what they read, the button is left off and the preview says so. Lock and History always stay. | Button | Left off when | | - | - | | Edit Reason, on a modlog | The log is compact, laid out with Components or as a picture, uses Advanced, or is plain text with any wording changed. Also when the format hides the footer or the time, or hides or spoilers one of the first three fields | | Show Edits, on Message Edited | The log is compact, laid out with Components or as a picture, uses Advanced, or is plain text with any wording changed. Also when the format hides the footer, hides or spoilers the message text or the first field, or adds lines | Changing only the colour, the wording of the title or footer, extra information or the buttons keeps both. ## Advanced With Quark Pro, the **Advanced** switch turns one log into a template. It starts from what the log looks like now, with each part Quark writes as a token, and can be edited in parts or as JSON. A template posts the fields it lists and no others. A template's layout is **Embed**, **Plain text**, **Components** or **Image**. Components and Image have editors of their own. See [Components and pictures](#components-and-pictures). ``` {{#if reason}}{{reason}}{{else}}No reason given{{/if}} {{content | truncate 200}} {{target.created | time R}} ``` ### Tokens | Token | What it becomes | | - | - | | `{{target}}`, `{{target.name}}`, `{{target.id}}` | Who it happened to: a mention, their username, their ID | | `{{target.created}}`, `{{target.accountAgeDays}}` | When their account was made, for `time`, and how many days ago | | `{{executor}}`, `{{executor.name}}`, `{{executor.id}}`, `{{executor.accountAgeDays}}` | The same for who did it | | `{{channel}}`, `{{channel.name}}`, `{{channel.id}}` | The channel | | `{{guild.name}}` | The server | | `{{content}}`, `{{contentBefore}}` | The message text, and the text before an edit | | `{{reason}}` | The reason given | | `{{name}}` | The role, thread, emoji or invite the log names | | `{{amount}}`, `{{attachments}}` | How many, on a log that counts, and how many files the message had | | `{{message.id}}`, `{{role.name}}`, `{{role.id}}` | The message's ID, the role and its ID | | `{{icon}}`, `{{log.name}}` | The log's icon and name | | `{{now}}` | The moment it happened, for `time`. `{{now+3600}}` adds seconds | | `{{quark.title}}`, `{{quark.description}}`, `{{quark.footer}}` | What Quark itself writes there | | `{{quark.details}}`, `{{quark.details 2}}` | Quark's first, or second, field with no heading | | `{{quark.field "Reason"}}` | One of Quark's fields, by its English name | ### Filters and conditions | Filter | What it does | | - | - | | `default "text"` | Used when the log has no value | | `upper`, `lower` | Changes the case | | `truncate 200` | Cuts to that many characters | | `time R` | Shows a time the way Discord does. The style is one of `t T d D f F R` | A condition goes in `{{#if …}}`, or in **Only when** on a field or a link button. It is written in the same language as an Advanced condition in [Automations](/dashboard/automations). * A field on its own asks whether the log has it: `{{#if reason}}`. * Join with `&&`, `||` and `!`. Compare with `==`, `!=`, `<`, `<=`, `>` and `>=`. Text has `contains`, `startsWith` and `matches`. * A condition cannot name a role, member or channel, because a format has to work on any server it is added to. It cannot count either. * A condition about something the log does not say is false. There are no loops and no scripts. A template can only read the log it is drawing. ### Checks **Checks** lists what is wrong with the template on the example on screen: an unknown token, an `{{#if}}` that is not closed, a part longer than Discord allows on this log, more than 25 fields. > [!NOTE] > > No log is lost to a format. If a template has a mistake, or what a format makes is too big for Discord, Quark posts that log as Standard. ## Components and pictures Two layouts go further than an embed: * **Components** lays a log out with Discord's newer message components: boxes, text, pictures beside text, galleries, files, dividers, rows of buttons and a menu of action buttons. Quark's **Components** format uses it, on every plan. * **Image** draws the log as a picture and posts that, with an optional line of text. Quark's **Image cards** format uses it. Both need Quark Pro, because Quark draws a picture for every log. Choose either one for all logs or for a single log under [Change the colour or layout](#change-the-colour-or-layout), and the log starts from Quark's own design. To build the design yourself, switch on [Advanced](#advanced) and set the template's layout to **Components** or **Image**. Quark lays the log out, or draws it, to start you off. ### The Components editor **Parts you can add** is on the left. Drag a part into the message, or click it to add it at the end. Each part is edited where it sits, and can be moved up and down, put into the box above or taken out of it, duplicated or deleted. A part can have **Only when**, a [condition](#filters-and-conditions), and is left out of the log when it is not true. | Part | What it is | | - | - | | Box | A box with a colour down the side, like an embed. Other parts go inside it, but not another box. It can be put behind a spoiler | | Text | Discord markdown and tokens. Headings, lists, quotes and small text all work | | Text with a picture | Up to three pieces of text, with a picture or one button beside them | | Media gallery | Up to 10 images in a grid: attached images or avatars, each with its own alt text | | Files | The log's files, the way Discord shows a file | | Divider | A line or a gap between parts | | Buttons | A row of up to 5 of the format's buttons. Add more rows for more buttons | | Actions menu | A dropdown of the format's [action buttons](#action-buttons), for when a row of buttons would be too many. Up to 25 | A picture in a part is one of: **Their avatar** (who it happened to), **Moderator avatar** (who did it), **Server icon**, **Log icon**, or, in a gallery, **Attached images**, such as a deleted photo. * Discord allows 40 components in one message, counting the ones inside boxes and rows, and 4000 characters of text across the whole message. The counter under the editor shows both for the log on screen. * A button the design does not place in the message is left off, and **Checks** says so. A button placed twice is a mistake: Discord needs each button once. * The log's own buttons, such as Lock and History on a modlog, go in a **Buttons** row like any other. ### The image editor The picture is on the left. Click a layer to choose it, drag it to move it and drag a corner to resize it. Arrow keys move the chosen layer, and Shift moves it further. **Snap** lines layers up with the edges and centres. **Add** puts a new layer in the middle of the picture: | Layer | What it is | | - | - | | Text | Text with tokens. Font (Manrope, Unbounded or Mono), weight, size, number of lines, alignment, colour, and capitals. Mentions and markdown are drawn as plain words | | Avatar | The avatar of who it happened to or who did it, as a circle or a rounded square | | Icon | This log's icon, Quark's, or the server's | | Shape | Rectangle, Rounded rectangle, Circle, Pill, Line, Triangle, Diamond, Star, or **Custom shape** | * For a **Custom shape**, click points on the picture. Click the first point, or press Enter, to finish. Backspace takes the last point off. It takes three points or more. * A shape has a fill, or none, and an outline. A rectangle's corners can be rounded. A custom shape can be drawn again with **Draw it again**. * The toolbar beside a chosen layer has **Duplicate**, **Delete**, **Bring forward** and **Send backward**. **Layers, front to back** lists every layer, and each one can be hidden. * Every layer has an opacity and **Only when**, a [condition](#filters-and-conditions). * **Settings** has the picture's size, with **Card**, **Wide**, **Square** and **Tall** ready-made, its background colour, a second colour for a gradient, and its corners. * **Text with the picture** posts a line of text with the picture. * **Alt text for screen readers** is posted with the picture. Leave it empty and Quark writes it from the log. An avatar or icon Quark cannot fetch in time is drawn as a stand-in. ### How these logs behave * **When a log cannot be posted this way, it is posted as Standard.** That happens when it comes to more than Discord allows, when Discord refuses the message, or, for a picture, when the picture is too big to post or takes too long to draw. * **Buttons.** Edit Reason and Show Edits are left off these logs. Lock and History stay. On an older modlog that still has Edit Reason, pressing it says the reason can't be edited in this layout. See [buttons a format leaves off](#buttons-a-format-leaves-off). * **Action buttons.** On a Components log, action buttons go in a **Buttons** row or in an **Actions menu**. Choosing a button in the menu does the same as pressing it. A picture log has its buttons under the picture. * **Finding them.** Every log, a picture included, is in the [log viewer](/logs/viewer) and can be searched there. Discord's own search cannot read the words drawn in a picture. * **Copies.** An automation rule's [copy](/dashboard/automations#copies) of a Components log keeps the layout, without the log's own buttons, action buttons and files. A copy of a picture log posts the picture again. * **Below Quark Pro.** A log that would be drawn as a picture is posted the way the format otherwise looks, and a server on Image cards gets Standard. ### Components and picture limits | | Limit | | - | - | | Components in one log | 40, counting those inside boxes and rows | | Text in one Components log | 4000 characters | | Parts in a Components template | 40 | | Pieces of text beside a picture | 3 | | Images in a gallery | 10 | | Buttons in a row | 5 | | Choices in an actions menu | 25 | | Picture size | 240 to 2000 pixels wide, 120 to 2000 high | | Layers in a picture | 30 | | Text on one layer | 500 characters | | Text with the picture | 300 characters | | Alt text | 300 characters | ## Action buttons With Quark Pro, a format can put buttons of your own under a log that do something when they are pressed: time someone out, ban them, give a role, post a message in a channel. A [link button](#change-the-buttons) only opens a page. An action button is made of the same blocks as a rule in [Automations](/dashboard/automations). A rule acts on its own when a log matches. A button waits for someone to press it, and acts for them. ### Add an action button **1. Open Change the buttons** On **Log Formats**, open a format, pick a log and press **Change something**, then **Change the buttons**. To put the button on every log, pick **All logs at once** in the log menu first. **2. Press Action button** It is under **Add a button**. Give the button a **Label** of up to 40 characters and a **Colour**: Grey, Blurple, Green or Red. Switch **Quark's icon on the button** off to leave the icon out. **3. Choose which logs carry it** Press **Add a condition**. With no conditions, the button is on every log of that kind. See [which logs carry a button](#which-logs-carry-a-button). **4. Choose what it does** Press **Add an action**. See [what a button can do](#what-a-button-can-do). **5. Choose who can press it** **Who can press it** lists the Discord permissions the button asks for. **Only certain roles** keeps it to the roles you choose. See [who can press a button](#who-can-press-a-button). **6. Press Add button, then Save format** The preview shows the button on the log. Under **What the person pressing sees** is the confirmation box, if the button has one. A log can have up to 5 action buttons, beside its link buttons and Quark's own. On a busy channel, logs can be [posted together as one message](/logs/behaviour#rate-limits). A log with an action button never is. It goes out by itself. ### Which logs carry a button Up to 8 conditions. All of them have to be true. They are the condition blocks from [Automations](/dashboard/automations#and-only-if), which says what each one tests: * Someone has a certain role * It's a particular person * A bot did it * It happened in a certain channel * The message says something * The account is new * They did it to themselves * No reason was given * It's a certain time of day * The message is new, or old Conditions are judged when the log is posted, not when the button is pressed. **It happened in a certain channel** with a forum or media channel matches logs from its posts, as it does in [Automations](/dashboard/automations#forums-and-their-posts). A button cannot count. **It keeps happening** and **It keeps happening across the server**, such as "more than 3 times in 10 minutes", are not offered. ### What a button can do Up to 4 actions. They run in order when the button is pressed. | Action | What it does | | - | - | | Tell a channel | Posts a message of your own in a channel you choose, with an optional role ping | | Time someone out | From 60 seconds to 1 week | | Remove a timeout | | | Kick someone | | | Ban someone | | | Unban someone | | | Delete the message | Deletes the message the log is about | | Give or take a role | | | Send someone a DM | Sends them a message of your own | "Someone" is the person it happened to or the person who did it, whichever you choose. * **Pings.** A role is pinged at most once every 30 seconds. A message inside that time is still posted, without the ping. It is the limit an automation rule's [alert](/dashboard/automations#safety-rules) has, and buttons and rules share it. * **Direct messages.** The message carries a small line saying it was sent by a moderator of the server. Quark does not message bots or people who have left. * **Messages in an hour.** A server's buttons send one member at most 3 direct messages an hour, whoever presses and on whichever log. All of a server's buttons together send at most 60 messages an hour, direct messages and messages to a channel counted together. Past either, the message is not sent and the reply says so. A message that could not be sent for another reason is not counted. Timeouts, kicks, bans and the other actions are not counted. A message to a channel and a direct message can use the **Put in** chips: | Chip | What it becomes | | - | - | | `{target}` | The person it happened to | | `{executor}` | The person who did it | | `{moderator}` | The person who pressed the button | | `{channel}` | The channel | | `{reason}` | The reason typed when pressing | | `{log}` | The name of the log | Only what a log can do is offered: * **Delete the message** is only offered on logs about an edited or a pinned message, where the message still exists. * A log where Quark is not sure who did it never gets a button that acts on the person who did it. Neither does a log that came through [another moderation bot](/logs/integrations), where Quark shows "using" and the bot's name. It is the same rule as [never on a guess](/dashboard/automations#safety-rules) in Automations. * Somebody who has left the server cannot be sent a direct message. * A button set for **All logs at once** is left off the logs it does not fit. ### Who can press a button Quark checks the person pressing every time. | Action | The person pressing needs | | - | - | | Tell a channel, Time someone out, Remove a timeout, Send someone a DM | Timeout Members | | Kick someone | Kick Members | | Ban someone, Unban someone | Ban Members | | Delete the message | Manage Messages | | Give or take a role | Manage Roles | * A button with several actions needs the permission for each of them. * **Tell a channel** also needs the person pressing to be able to see the channel and send messages in it. In a thread, that is Send Messages in Threads. Otherwise the reply says they can't post there themselves, so the button can't post there for them. The server owner and members with Administrator are not stopped by this. * The moderation actions and **Give or take a role** cannot be used on the person pressing the button. The reply says "You can't use this on yourself". A direct message to yourself is still sent. * The dashboard and Quark's replies call Timeout Members "Moderate Members". It is the same permission. * The highest role of the person pressing has to be above the member's highest role, and so does Quark's. * The server owner can always press. * **Only certain roles** narrows it further, to up to 10 roles. The person pressing then needs one of those roles as well as the permissions. Only the server owner gets past the list. Someone with Administrator and none of the roles does not. * Quark needs its own permission for each action too, as it does for a rule. See [permissions](/permissions#for-automations). ### When a button is pressed * **A button that moderates** opens a confirmation box first. Quark writes the box. It lists exactly what will happen, whatever the button's label says. It has an optional **Reason**, which goes in the audit log and on the modlog. * **A button that only sends messages**, with nothing but Tell a channel or Send someone a DM, acts straight away. * **On a [Components](#components-and-pictures) log**, action buttons can be in an **Actions menu** instead of a row. Choosing one in the menu is the same as pressing it. * Actions run in order. If one cannot be done, the rest are not. * The person pressing gets a private reply saying what was done. * A button stays pressable. It cannot be pressed again on the same log for 10 seconds. What is logged: * The ban, kick or timeout is logged as usual, and names the person who pressed. * The press itself is recorded as a **Rule Action** log, titled "Button Pressed". Only a press that did something is recorded. * The record follows the switch for the Rule Action log type. With that log switched off there is no record of the press itself. The ban, kick or timeout is still logged as usual. * In the [log viewer](/logs/viewer), a press reads as who pressed which button about which member: "mara pressed the “Ban” button about nova". ### Who can add or change one Adding or changing an action button takes more than [editing a format](#who-can-view-and-edit-formats): * **Manage automations** under [dashboard access](/dashboard/access), as well as **Manage log settings**. Anyone who manages the server in Discord has both. * A signed-in dashboard session. An [API token](/api-reference/introduction) cannot add or change one. * The Discord permission for each action the button takes. You need it yourself, the same as the person pressing. See the table under [who can press a button](#who-can-press-a-button). Somebody without these can still edit the rest of the format. ### After a button is changed * Editing a button changes what it does on logs already posted. A press does what the format says now. * Deleting the button, or the format, stops it working on logs already posted. **Undo** brings a deleted format back, but its buttons on those logs do not start working again. * Logs posted before a button was added do not get it. ### Where action buttons are left off * **A server without Quark Pro.** If a server leaves Quark Pro, its action buttons are kept in the format and left off logs until it is back. * **A format shared by link.** The link never carries action buttons, because they name this server's channels and roles. Whoever adds the format builds their own. * **Compact (no embed) and JSON.** Those logs have no buttons, so they cannot carry an action button. The same goes for a log in the **One line of text** layout. A compact embed keeps its action buttons. * **A rule's copy of a log.** A [copy](/dashboard/automations#copies) that an automation rule sends to another channel does not carry action buttons. ## Share a format **Share** on a format gives it a link, such as `quark.bot/f/staff-room-7kq2m9x4`. Save the format first. * The link carries how the format changes logs: the layout, wording, colours and buttons. It carries nothing from your server: no names, channels, roles, members or logs, and not who made it. * [Action buttons](#action-buttons) are never carried. They name your server's channels and roles. * Anyone with the link can look at the format and add a copy to a server they manage. Each server gets its own copy, and changes you make later do not reach it. * Switch the link off in the same place. Nobody can open it then, and copies people already added stay as they are. Switching it on again brings the same link back. * Renaming the format does not change its link. Deleting the format ends the link for good. * The page the link opens can take up to a minute to show that a link was switched off or a format edited. To list a format where anyone can find it, share it on the [Marketplace](/dashboard/marketplace). Formats are looked at by a person at Quark before they appear there. ### Add a format from a link Press **Add from a link** and paste the link. * Before anything is added, you see the format on a log, which logs it changes, and where any link buttons in it lead. * You get your own copy, which you can change. Your logs do not switch over until you press **Use this format**. * Logs that use Advanced arrive parked on a server without Quark Pro. * The copy has no [action buttons](#action-buttons), whatever the format had. Build your own. > [!WARNING] > > A shared format is someone else's wording. Read its added lines and check where its link buttons lead before you use it. ## How a format is applied Quark decides how to post each log in this order: 1. A free server: the one of Quark's formats the server uses. 2. A log type that was given one of Quark's formats under **Individual Log Config**, before that option was removed: that format. See [a format for one log type](#a-format-for-one-log-type). 3. The format you built and chose with **Use this format**. 4. Otherwise, the one of Quark's formats the server uses. * **Three logs take no format's changes**: Multiple Voice Channel Events, Multiple Reactions Removed and Rule Action. They are posted as Quark writes them, as an embed or as text to match the format. * **Automations.** A rule's colour wins over the format's. A rule's notice is kept in every layout. A rule's copy of a log is posted in the server's format, without the log's own buttons or its action buttons. * **Too big for Discord.** Extra information is dropped first and added text is cut. If the log still does not fit, it is posted as Standard. A [Components or picture](#how-these-logs-behave) log that Discord refuses is posted again as Standard. * **Other languages.** A format finds a field by its English name. If Quark cannot work that name out for a log on a server that uses another [language](/languages/overview), a hidden or spoilered field stays visible on that log, and an Advanced template that reads fields by name is not used for it. This is always so for Reaction Removed. ## Limits | | Limit | | - | - | | Formats on a server, for each bot | 25 | | Format name | 40 characters | | Added lines | 4, of 300 characters each | | Link buttons on a log | 5 | | Action buttons on a log | 5 | | Roles an action button is kept to | 10 | | Action button label | 40 characters | | Conditions on an action button | 8 | | Actions on an action button | 4 | | Fields in an Advanced template | 25 | | A condition | 300 characters | ## What each plan gets | | Free | Pro Lite | Quark Pro | | - | - | - | - | | Use Quark's own formats | Yes | Yes | Yes | | Build, duplicate, share and add formats, and see them on every log | Yes | Yes | Yes | | Post logs in a format you made | No | Yes | Yes | | Logs a format can change one by one | None | 10 | All | | The Components layout, and Quark's Components format | Yes | Yes | Yes | | Logs drawn as pictures: the Image layout, and Quark's Image cards format | No | No | Yes | | Advanced | No | No | Yes | | [Action buttons](#action-buttons) | No | No | Yes | * On Pro Lite, a format's changes to **All logs at once** apply to every log, and are not counted in the 10. * When a plan ends, nothing is deleted. Logs the plan does not run are **Parked**: they look the way every log in the format does, and their own changes come back with the plan. On a free server the format is kept as it was and logs go back to the one of Quark's formats the server chose before, or Standard. * Action buttons are kept in the format when a server leaves Quark Pro. They are left off logs until it is back. * Logs drawn as pictures need Quark Pro. Without it, a log that would be a picture is posted the way the format otherwise looks, and a server on Image cards gets Standard. A format can still start from Image cards on any plan, and its preview shows the picture. * On a server under 1,000 members, each vote on Top.gg unlocks Pro Lite for 24 hours. See [voting](/subscriptions/voting). ## Who can view and edit formats | | Who | | - | - | | View | Anyone who manages the server in Discord, and anyone given **View configuration** under [dashboard access](/dashboard/access) | | Edit | Anyone who manages the server in Discord, and anyone given **Manage log settings** | | Add or change an [action button](#who-can-add-or-change-one) | The same, and they also need **Manage automations** and the Discord permission for each action the button takes | Editing covers creating, changing, deleting, duplicating, sharing, adding from a link and choosing which format is in use. Someone who can only view can still look at every format on every log. ## What is logged Changes to a format you built produce a **Logging Options Updated** log in the Quark Events category, with who made the change: Created, Added from a link, Edited, Renamed, Deleted, Now in use, No longer in use, Shared with a link and No longer shared with a link. Pressing an [action button](#when-a-button-is-pressed) produces a **Rule Action** log, titled "Button Pressed", when the press did something and the Rule Action log type is switched on. Choosing one of Quark's formats is logged as a change to the server's format. A change made by someone on your **Who did it** ignore list is not logged. # Marketplace Source: https://docs.quark.bot/dashboard/marketplace Share tags, formats, automations, lists and ignore rules, and add what other servers share The Marketplace is at [quark.bot/marketplace](https://quark.bot/marketplace). Servers share what they have built for Quark there, and anyone can add a copy to a server they manage. Browsing is open to everyone. Sharing, adding and reporting need you to sign in with Discord. The Tags, Log Formats and Automations pages of the dashboard, and the Lists section of Automations, each have a **Check out the Marketplace** link that opens it on that kind of thing. ## What can be shared | Kind | What a listing holds | | - | - | | Tag | One [tag](/commands/tags): its name, text, colour and image | | Tag bundle | A [bundle](/commands/tags#bundles) of tags, each with its name, text, colour and image | | Log format | A [format](/dashboard/formats) you built, and every change in it | | Automation | An [automation](/dashboard/automations) rule, with the names of the roles and channels it uses, and any list it checks against | | List | One of the lists of words, phrases or web addresses under **Automations → Lists**, with every entry | | Ignore rules | The server's [ignore rules](/logs/options#ignore-rules) that work on any server: channels, categories, roles, exact content and lists. Ignore rules about people are never shared | A listing never carries your members, your logs or the rest of your settings. It is a snapshot: changes you make on your dashboard later only reach the Marketplace when you [update the listing](#your-listings). Some things cannot be shared: * A format you added from someone else's link or from the Marketplace. It isn't the server's own. * A rule that names a person. * A rule that uses a role, a channel or a list that has been deleted, or a list that is empty. Fix the rule first. * An empty list. * Something already listed. Manage it from **Your listings** instead. A server can have 50 listings. ## Browse * Search by name, description, who shared it, topic or a tag's name. * Filter by kind and by topic: Moderation, Anti-scam, Support, Rules & info, Community, Gaming, Voice and Fun. * Sort by **Most added**, **Recently updated**, **Newest** or **A to Z**. * **Staff picks** are chosen by the Quark team. Listings marked as made by Quark were made and checked by the Quark team. A listing's page shows what it adds, which plan it needs, how many servers added it and when it was listed. A listing shared by a server or a person links to a page of everything else they have shared. Text in a listing was written by someone you don't know. Links in a tag are written out as text, images load only when you ask, and the words in a list stay hidden until you ask. ## Share something **1. Press Share something** On the Marketplace, or on **Your listings** in your profile menu. Pick the server, then what to share. Only what you can manage in that server is offered: see [who can share and add](#who-can-share-and-add). **2. Say what it is** | Field | Rules | | - | - | | Name | Up to 40 characters | | Short description | What it does, in a sentence: 10 to 140 characters | | Topics | Up to 3 | | About | Optional, up to 1,000 characters. How you use it, and what to change before using it | **3. Choose who it is shown as shared by** | Shown as | What people see | | - | - | | The server | The server's name and icon | | You | Your name and avatar | | Anonymous | No name, no picture and no page of its own | An anonymous listing can still be moderated: Quark records who shared it. **4. Confirm and share** Tick **I made this, or I have permission to share it**. That also means it follows the Marketplace guidelines: nothing hateful or sexual, no scams, no invite links. ### The checks Every listing is checked before it is shown, and again when it is updated. If one fails, nothing is listed and the check says what to change. | Check | What it looks at | | - | - | | No invite links to other servers | Everything in the listing | | No @everyone, @here or mentions | Everything the listing adds. A mention of a role, person or channel carries your server's IDs | | Nothing from the blocked words list | The name, description and About, a tag's name, and the text a rule sends, including an alert embed's title | | Images only from Discord or Imgur | A tag's image | ### Which listings are reviewed | Kind | When it appears | | - | - | | Log formats and automations | Once a person at Quark has looked at it, usually within a day. Until then it is **Being looked at** | | Tags, tag bundles, lists and ignore rules | Straight away, once it passes the checks | A format or an automation is looked at again when you update it. People get the version that is listed until the update has been looked at. ## Your listings **Your listings**, in your profile menu, has every listing from a server where you can manage that kind of thing. | Status | What it means | | - | - | | Listed | On the Marketplace | | Being looked at | A format or automation waiting for a person at Quark | | Unlisted | Hidden from the Marketplace. Only you can see it | | Taken down | Quark took it down. The reason is shown | * **Update the listing** appears when the thing has changed on your server since you listed it, marked **Out of date**. Servers that already added it keep the version they have. * **Unlist** hides it, and **List again** brings it back. Copies people added stay. * **Delete listing** removes it, and its link stops working. Servers that added a copy keep it. This cannot be undone. * The same options are on the listing's own page. ### Taken-down listings When Quark takes a listing down, **Your listings** shows the reason. Fix what it says on your dashboard, then press **Ask for another look** and say what changed, in 10 to 500 characters. The Quark team replies within a few days. A taken-down listing cannot be edited, updated, listed again or deleted until it has been looked at again. The Quark team can also hide the picture of who shared a listing for good, and block a server or an account from sharing. A block takes down everything that server or account has listed. A name with a word from the blocked words list is shown as "A Quark server" or "A Quark user", without a picture. ## Add a listing to your server **1. Press Add to a server** On the listing's page. Sign in if you have not. **2. Pick the server** The list shows the servers you manage. A server without Quark has an **Invite Quark** button. A server where you cannot change that kind of thing is shown greyed out. Where both Quark and Quark Pro are in a server, pick which one: each keeps its own copy. **3. Check what will be added** Every change is listed before anything is added. If the listing is about a role or a channel, pick one of your own for each. One with the same name is picked for you to start with. **4. Add** If the listing changed since you opened it, nothing is added and you are shown the new version first. What arrives is a copy. Edit it on your dashboard like anything you made yourself. Later updates to the listing do not reach it. Adding does not tell whoever shared it which server took it: only the count goes up. | Kind | What happens | | - | - | | Tag, tag bundle | Each tag is added to **Tags**. A tag whose name your server already has is left out, and yours is not touched. Without Quark Pro a server holds 25 tags, so tags past that are left out. You can untick tags you don't want | | Log format | Added to **Your formats** on Log Formats, as **Name (2)** if the name is taken. Tick **Use it for every log now** to switch to it, or choose it later. Posting logs in it needs Pro Lite or Quark Pro, and Quark Pro if it uses Advanced or a picture layout | | Automation | Each rule is added to **Automations**, switched off so you can read it first. Tick **Switch on straight away** to skip that. Any list a rule checks against comes with it. A rule with an [advanced condition](/dashboard/automations#advanced-conditions) is added as a preview off Quark Pro. Rules past your plan's number are not added | | List | Added to **Automations → Lists**, renamed if the name is taken. Entries past your plan's limit for a list are left out. If the server already runs as many lists as its plan allows, the list is added and used once there is room | | Ignore rules | Merged with yours. Pick the channel or role for each, or leave one empty to skip it. Anything you already ignore is not added twice | Picking a channel for a rule only offers channels that suit what the rule does with it: * Never a category, unless the rule wants a category. * For an alert, a copy of a log or a forward, a channel that takes messages: not a forum, media channel or directory. * For moving someone, a voice or stage channel. For a voice channel's status, a voice channel. A rule is saved as if you had saved it on the Automations page yourself. A rule that moderates needs your own Discord permission for it, and a rule that copies or forwards messages needs **View logs**. See [who can view and edit rules](/dashboard/automations#who-can-view-and-edit-rules). The rule then [acts for you](/dashboard/automations#who-a-rule-acts-for). ## Who can share and add To share, update or add a listing in a server, Quark has to be set up there and you need the dashboard permission for that kind of thing. Anyone who manages the server in Discord has all of them. Someone given [dashboard access](/dashboard/access) needs: | Kind | Permission | | - | - | | Tags, tag bundles | Manage tags | | Log formats, ignore rules | Manage log settings | | Automations, lists | Manage automations | ## Report a listing Open the listing's **⋯** menu and choose **Report this listing**. Pick a reason and, if you like, say which part and why, in up to 500 characters. | Reason | | - | | Hateful, harassing or sexual content | | A scam, or links to one | | It's copied from me or another server | | It doesn't do what it says | | The name or picture of who shared it | | Something else | Reports go to the Quark team, who can take a listing down. The person who shared it is not told who reported it. You can have one open report on a listing at a time. # Overview Source: https://docs.quark.bot/dashboard/overview A tour of the web dashboard The dashboard is at [quark.bot/dashboard](https://quark.bot/dashboard). Sign in with Discord. If you have Manage Channels and Manage Server, you can also run `/dashboard` in your server to get a link straight to it. ## Who can open a server's dashboard * Anyone with **Administrator**, **Manage Server**, **Manage Channels** or **Manage Webhooks** in the server. They get full access. * Anyone who has been [given access](/dashboard/access) by one of those people. They see only what they were given. ## Choosing a server The first page lists your servers under two tabs, **With Quark** and **All servers**. If someone has shared a server with you, it appears in a **Shared with you** section above your own. ## Pages Each server has these pages in the sidebar: | Page | What it is for | | - | - | | Logging | Log channels, ignore rules, and settings for each log type. See [where logs go](/logs/overview#where-logs-go) and [options](/logs/options) | | Log Viewer | Your logs on the web. See [log viewer](/logs/viewer) | | Log Formats | How your logs look: Quark's own formats, and formats you build or add from a link. See [log formats](/dashboard/formats) | | Automations | Rules that do something extra when a log is produced. See [automations](/dashboard/automations) | | Tags | Create, edit and share tags, and bundle them. See [tags](/commands/tags) | | Settings | Language, status updates, dashboard access, API tokens, importing settings and reset | The [Marketplace](/dashboard/marketplace), at [quark.bot/marketplace](https://quark.bot/marketplace), is where servers share tags, formats, automations, lists and ignore rules, and add what others share. The Tags, Log Formats and Automations pages link to it. ### Logging The Logging page has four tabs: | Tab | What you set there | | - | - | | Channels | The main log channel, a channel or on/off switch for each category, and under each category a **Log types** list where each log type is switched on or off. The two special categories, Files and Age-restricted, cannot be switched off; the switch says why | | Ignore Rules | People, roles, channels, categories and message content to leave out, and whether actions by bots are logged | | Other | Spoilers, which buttons appear on logs, how long modlog reasons stay editable, PluralKit compatibility and Pro upsell logs | | Individual Log Config | Settings for one log type at a time: on or off, channel and colour. **Formats and Automations** at the end shows the [format](/dashboard/formats#a-format-for-one-log-type) the log is posted in and the automation rules that watch it, with links to both | ### Settings | Setting | What it does | | - | - | | Language | The language of every message Quark sends in your server. See [languages](/languages/overview) | | Status updates | The channel where announcements from the Quark developers about releases and downtime are posted, or Off | | Dashboard Access | Give a role or a person part of the dashboard. See [sharing access](/dashboard/access) | | API Access Tokens | Create and revoke tokens for the [API](/api-reference/introduction). Up to five per server | | Import settings | Copy another server's settings into this one. See [below](#import-settings-from-another-server) | | Reset | Deletes Quark's configuration for the server. This cannot be undone | Dashboard Access, API Access Tokens, Import settings and Reset are only shown to people who manage the server in Discord, never to people who were given access. Status updates are a channel follow in Discord, so Quark needs the **Manage Webhooks** permission to show or change where they go. > [!WARNING] > > **Reset** removes your log channels, ignore rules, per-log settings, automation rules, tags, API tokens and access grants, and the history of changes to modlog reasons. It does not delete logs already posted in your Discord channels. Revoke your API tokens before you reset: the reset removes their records, so they can no longer be listed or revoked afterwards. After a reset the dashboard shows the empty configuration straight away, and the server goes back to the start of setup. The **Finish setting up** card comes back, even if you dismissed it, and its **Set it up** button opens the setup page from the first step, as after adding Quark. ### Import settings from another server If you run more than one server, you can set one up and copy its settings to the others. **1. Choose the server to copy from** Under **Settings**, press **Import from another server**. The list shows the other servers you manage in Discord where Quark is set up. **2. Choose what to copy, and the channels and roles** Tick the parts you want: logging options and log types, where logs go, ignore rules, tags, automations, dashboard access and language. Automations and dashboard access start unticked. Channels and roles are not shared between servers. For each one the other server uses, choose the channel or role in this server to use in its place, or leave it out. One with the same name here is chosen for you to start with. Every change is listed before anything is changed, with what it does. A rule is read out as a sentence, a person is shown by name or ID, and dashboard access says what it gives. The text of a tag, an alert or a direct message is shown in full. **3. Import** Keep the page open until it finishes. Anything that could not be changed is listed with the reason. What an import does and does not do: * A channel this server already uses is only replaced by a channel you choose. It is never cleared or switched off. * Ignore rules, tags, automations and dashboard access are added to what is already here. Nothing is removed, and access somebody already has here is not changed. * Anything that uses a channel or role you left out is not copied. An automation is copied whole or not at all. * A rule that moderates, holds logs back, sends a copy of a log to another channel or forwards messages arrives switched off. So do the rules listed after one that holds logs back, and the rules after one that could not be added. Read each one, then switch it on from **Automations**. * A rule that only alerts, adds a notice or changes a log's colour arrives as it is in the other server: on, off or as a dry run. It arrives switched off instead if one of its messages is longer than 12 lines or 400 characters, or if it has characters in it that cannot be seen. * A rule that Automations would not let you save here is not copied. The list says why. * A tag or an ignore rule cannot arrive switched off. One with characters that cannot be seen is still added, and its line in the list says **Take care**. * Colours, bot rules and a log type's own channel need Quark Pro or Pro Lite on the server you import into. The format copied is which of Quark's formats the other server uses. A format a log type was given in the other server's Individual Log Config is not copied: it is listed with the reason. [Formats built there](/dashboard/formats) are not copied: share one with a link and add it here instead. Automations with an advanced condition need Quark Pro there too, and one that changes a log's colour needs Pro Lite or Quark Pro. * API tokens, the status updates channel and unused dashboard invite links are never copied. * The other server is not changed. * Each change is logged as a change made by hand would be. There is no undo. ## Quark and Quark Pro tabs At the top of each server's dashboard are two tabs, **Quark** and **Quark Pro**. They are two separate bots, and each has its own configuration. Settings you change on one tab do not affect the other. See [subscriptions](/subscriptions/overview) for what the Pro bot is. ## Staying on top of problems * The **stethoscope** button opens the [troubleshooter](/troubleshooting). It shows a red badge when something is stopping logs and an amber one when some logs are affected. * The **bell** lists recent changes to Quark's settings in the server and who made them. * A **Finish setting up** card on the Logging page lists what is left to do: choose where logs go, receive your first log, and, if you have a subscription, apply it and add the Pro bot. You can dismiss it. **Set it up** opens the setup page for a server that has no log channel, including one that was reset. * The Channels tab warns you when a log channel has no webhook (press **Fix**) or is over Discord's rate limit. ## If you remove and re-add Quark When Quark is removed from a server, its configuration for that server is kept for a limited time. If you add Quark again before it expires, the dashboard asks whether to **Load Old Configuration** or **Start Fresh**. # Switch to Quark Source: https://docs.quark.bot/dashboard/switch Bring your setup over from Ticket Tool, tickets.bot or another logging bot **Settings → Import → Import from another bot** moves a server's setup to Quark. Nothing changes in your server until you have reviewed the plan and pressed import. It is on every plan. You can also start it from the **Switching from another bot?** line on the Logging page, or from the empty Tickets board. ## What it brings over | From | What comes over | | - | - | | Ticket Tool | Panels and their buttons, staff roles, transcript channel, ticket settings and past tickets | | tickets.bot | The same, from the export files you download from tickets.bot | | Another logging bot | Which log channels it posts each kind of log to | | Another bot's mod log | Past moderation actions, as cases | ## Steps **1. Pick the bot** An import that is still running or waiting for review is offered at the top, so you can carry on with it. **2. Scan or upload** Quark reads the other bot's messages in your server. If it can't read a channel, it says which permissions it needs there, and you can check again. For tickets.bot, choose the `.zip` files (or `data.json`) of up to 200 MB. They are read in your browser, and only what Quark needs is sent. **3. Review** Tick the parts you want: panels (post them now, and optionally delete the old bot's panels), staff roles, the transcript channel, ticket settings, past tickets, log channels and cases. Anything Quark couldn't read is listed at the top. **4. Import** Quark shows each step as it goes. If it stops part way, press **Carry on**: nothing is done twice. **5. Tell your members** The last step lists what came over and what was left out, and can post a message to a channel of your choice. Imported tickets are marked **Imported from** the other bot. They can be read but not reopened. ## Set up in Discord with /setup `/setup` sets up the basics without leaving Discord: logging, tickets, moderation and Auto-mod. It shows what each is set to now and has a **Set up** or **Change** button for each. Only people with Manage Server and Manage Channels can change the setup. # Behaviour Source: https://docs.quark.bot/data/behaviour How long Quark keeps each kind of data, and how to remove it Message text, files and log history are kept for a limited time. This page lists the limits. ## How long data is kept | Data | Without Quark Pro | With Quark Pro | | - | - | - | | Message text | 12 hours | 30 days | | Copies of attached files | Up to 1 day | Up to 30 days | | Log history on quark.bot | Up to 1 day. The log viewer shows the last hour | 30 days | | Avatars, icons and similar images | Up to 180 days | Up to 180 days | | Backups of log history | 14 days | 14 days | | History of changes to modlog reasons and images | Until the configuration is reset | Same | | The copy of a log you are reporting with **Report log issue** | Up to 1 hour, or until the report is sent | Same | | Server configuration | Until the configuration is reset. After Quark is removed, it is kept for a limited time so it can be restored | Same | Pro Lite has the same limits as the free plan. Details about your server's members, roles and channels are kept while Quark is in the server. ### Messages Quark stores a message when it is sent and keeps it for 12 hours after it was sent or last edited, or 30 days on Quark Pro. After that, Quark cannot show what the message said. See [message age](/logs/behaviour#message-age). The limit is set when the message is stored. Upgrading to Quark Pro extends it for messages sent from then on, not for messages already stored. ### Files Quark keeps a copy of each attached file so that it can re-post it if the message is deleted. The copy is removed as soon as the log containing it has been delivered, and otherwise when its time limit runs out. ### Log history Each log is also recorded so the [log viewer](/logs/viewer) can show it. That record holds text and file names. It does not hold the files themselves. ### Modlog reason history When a moderator edits the reason on a modlog, adds or removes its images, or locks it, Quark records who did it and when. For an edit it also records the reason before and after, and for images their file names. This is what the modlog's **History** button reads. See [buttons on logs](/commands/behaviour#buttons-on-logs). Quark does not keep the images. An image added to a modlog is passed to Discord and attached to the modlog's message, and from then on it is part of that message in your channel. The record is made on every plan. Quark does not remove it after a set time. It is deleted when the server's configuration is reset. ### Log reports **Report log issue** sends a copy of one log to Quark's developers, along with what you wrote about it. See [Report log issue](/commands/behaviour#report-log-issue) for what the copy holds. Quark keeps the copy for up to an hour while the form is open, and removes it once the report is sent. ### Logs in your Discord channels A log that has been posted to your log channel is a message in your server. Quark's time limits do not apply to it. It stays until someone in your server deletes it. ## What you can control | To do this | Do this | | - | - | | Stop logging a channel | Add the channel to the [ignore rules](/logs/options#ignore-rules). Messages and files there are still stored for their usual time | | Stop Quark receiving a channel at all | Remove Quark's View Channel permission in that channel | | Stop logging a member or role | Add them to the ignore rules | | Stop a kind of log | Switch off the log type or its category | | Decide who can read logs on the web | Manage [dashboard access](/dashboard/access) | | Delete Quark's configuration for your server | **Settings → Reset** on the dashboard | **Reset** deletes your server's configuration: log channels, ignore rules, per-log settings, automation rules, tags, API token records and access grants. It also deletes the history of changes to modlog reasons. Revoke your API tokens before you reset. It does not delete stored messages, files or log history, which expire on their own within the limits above, and it does not delete logs already posted in your Discord channels. ## If you remove Quark Quark stops receiving anything from your server. Its configuration for the server is kept for a limited time, so that if you add Quark again soon you can choose to restore it. Stored files and log history are not deleted at that moment. They expire within the limits above. ## Asking for your data to be deleted If you are a member of a server that uses Quark and want to know what Quark holds about you, or want it deleted, follow the contact details in the [privacy policy](https://quark.bot/legal/privacy-policy). Logs already posted in a server's log channel are held by Discord and controlled by that server's staff. # Overview Source: https://docs.quark.bot/data/overview What data Quark handles and why To log something after it has happened, Quark has to hold on to it first. A deleted message can only be shown if Quark kept a copy while it existed. This section explains what Quark keeps, for how long, and how you control it. > [!NOTE] > > The [privacy policy](https://quark.bot/legal/privacy-policy) is the authoritative statement of how Quark handles data. These pages explain the same things from the point of view of someone running a server. ## What Quark receives from Discord Once Quark is in your server, it receives the following. Copies of files are only kept once a log channel is set. | Data | Why | | - | - | | Message text, with embeds, stickers, reactions and the names and sizes of attachments | To show what a message said if it is edited or deleted | | A copy of each attached file | To re-post the file if the message is deleted | | Member details: user ID, username, display name, avatar, nickname, roles | To show who a log is about | | Server activity: voice joins and leaves, member joins and leaves, role and channel changes, moderation actions, audit log entries | These are the logs | | Avatars, server icons, role icons and similar images | To show before and after when they change | Quark does not receive direct messages, email addresses, or anything from servers it has not been added to. ## Where it goes * **Your log channels on Discord.** Once a log is posted, it is a Discord message in your server. Your staff control who can see it, and it stays until you delete it. * **Quark's own storage**, for a limited time. See [behaviour](/data/behaviour) for how long and [storage](/data/storage) for how it is protected. * **The log viewer**, which shows the same logs on the web to people you allow. See [log viewer](/logs/viewer). ## Your responsibilities If you add Quark to a server, tell your members that messages, files and activity are logged, and decide carefully who can see your log channels and who has [dashboard access](/dashboard/access). > [card] [Behaviour](/data/behaviour) > > How long each kind of data is kept > [card] [Storage](/data/storage) > > How stored data is protected # Storage Source: https://docs.quark.bot/data/storage How Quark protects the data it stores ## Messages The text of a message is encrypted with AES-256 before it is stored, using a key that is kept separately from the database. Embeds, poll text, forwarded messages and attachment names are stored without that encryption, and so is the log history. See [behaviour](/data/behaviour) for how long each is kept. ## Files Copies of attached files are compressed where that helps, then encrypted with AES-256 before they are stored. Each file has its own key, derived from the file's Discord IDs and size. The key is not stored with the file. Files are held with an object storage provider that deletes every file after a fixed time. A copy is also deleted as soon as the log that contains it has been delivered. The code that stores and encrypts files is open source: [quark-bot-discord/file](https://github.com/quark-bot-discord/file). ## Logs on the web The [log viewer](/logs/viewer) shows text and file names only. Deleted files are re-posted to your Discord log channel and are never served from quark.bot. Opening a log loads embed images, stickers and emoji from Discord's servers. Images hosted elsewhere are not loaded. ## Who can see your data * **In Discord**: whoever can see your log channels. That is up to you. * **On the web**: people who manage the server in Discord, and anyone they have given [dashboard access](/dashboard/access). Every change to that list is logged. * **Through the API**: anyone holding one of your server's API tokens. Create them only when you need them, and revoke them from **Settings** when you do not. See the [API reference](/api-reference/introduction). ## Services that receive message data * **PluralKit**: only if you turn on [PluralKit Compatibility](/logs/integrations#pluralkit). The ID of a deleted message is sent to PluralKit to check whether it was proxied. * **Discord**: logs are delivered to the channels you choose. * **An object storage provider**: holds the encrypted copies of files. The [privacy policy](https://quark.bot/legal/privacy-policy) lists every service that receives data of any kind. # Integrations, API and webhooks Source: https://docs.quark.bot/enterprise/integrations Connect Quark to Slack, Teams, helpdesks and issue trackers (Quark Enterprise) With Quark Enterprise, a server manager can connect Quark to the tools your company already uses. Integrations are on the dashboard under **Settings → Integrations**, and the read API and webhooks under **Settings → API and webhooks**. ## Integrations | Tool | What it does | | - | - | | Slack and Microsoft Teams | A two-way line between a Slack or Teams channel and your server: ticket replies and messages between your staff and the server's moderators go both ways | | Zendesk, Freshdesk and Helpshift | Tickets are copied to your helpdesk, and replies made there are posted back into the ticket | | Jira and Linear | Send a ticket or report to your tracker as an issue, with duplicates linked and private exploit reports kept private. When the issue's state changes, Quark can tell the people who reported it | | GitHub | Open a GitHub issue from a ticket | Each ticket panel button can choose where its tickets are also sent, under **Also send to**. ## Read API The read API gives your own systems your server's cases, tickets (with transcripts) and appeals. * Make a key under **Settings → API and webhooks**. A key belongs to one server and can only read what it was given: cases, tickets, appeals, or any of them. It is shown once. Keep it on your server, never in a browser or an app. * Send it as `Authorization: Bearer qk_…`. * Each key can make 120 requests a minute. Every answer has `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. * A key stops working when it is revoked, or when the server no longer has Quark Enterprise. The full reference is at [quark.bot/docs/api](https://quark.bot/docs/api). ## Webhooks Add an https address under **Settings → API and webhooks** and pick its events, such as a ticket being opened or closed, an appeal being decided or a review item being decided. Quark sends a `POST` with a JSON body when one happens. * Every request is signed: `Quark-Signature: t=,v1=` is the HMAC-SHA256 of `.` with the endpoint's signing secret, and `Quark-Event` names the event. * Answer with any 2xx within 10 seconds. Anything else is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, then each day, 8 tries in all. The same event keeps its id on every try, so use it to skip repeats. * Quark doesn't follow redirects, and never sends to private or local network addresses. * **Send test** sends a sample event, and each endpoint shows its last status. # Ideas Source: https://docs.quark.bot/ideas Setups that other servers use to get more out of Quark Each of these uses features on the free plan unless it says otherwise. > [card] [Edit this page](https://github.com/quark-bot-discord/docs/edit/main/ideas.mdx) > > Have a setup worth sharing? Add it. ## A separate channel for moderation Send **Modlogs** to their own channel so bans, kicks and timeouts are not buried under message logs. Moderators can then press **Edit Reason** on a modlog to add or correct the reason later, and to attach screenshots as evidence. Dashboard: **Logging → Channels → Modlogs**. ## A private channel for deleted files Set a **Files** channel that only senior staff can see. Deleted attachments are then posted there as their own log, away from the rest of your message logs. Dashboard: **Logging → Channels → Files**. ## Keep age-restricted content out of your log channel A deleted or edited message is logged with what it said. Set an **Age-restricted** log channel, itself age-restricted, and the message logs from your age-restricted channels go there and not to your other log channels. Dashboard: **Logging → Channels → Special categories → Age-restricted**. See [age-restricted channels](/logs/overview#age-restricted-channels). ## Split busy servers across channels Discord limits how fast messages can be posted to one channel. In a large server, give **Messages** and **Voice** their own channels. The limit applies per channel, so two channels carry twice as much. The dashboard warns you on the Channels tab when a channel is over the limit. ## Stop modlog reasons being rewritten later Set **Modlog reasons** to **Lock after 24 hours**. Moderators can still correct a reason on the day, and after that it stays as written. To freeze one modlog straight away, press its **Lock** button. That lock is permanent. Dashboard: **Logging → Other → Modlog reasons**. See [modlog reasons](/logs/options#modlog-reasons). ## Hear about it when a staff member is banned On the **Automations** page, start a rule from the idea **Tell a channel when someone with a role is banned**. Choose your staff role and a channel only admins can see, and a role to ping if you want one. Quark posts there whenever a member with that role is banned, with who did it and the reason. See [automations](/dashboard/automations). ## Keep bot commands out of the logs Add your bot-commands channel, or a whole channel category, to **Logging → Ignore Rules**. Add common command messages to **Exact content** so deleting them is not logged. ## Quieter voice logs If you only care about who was in voice, switch off Stream Start, Stream End, Video Start and Video Stop under **Logging → Individual Log Config**. Joins, leaves and moves that happen close together are already bundled into one log. ## An audit trail for Quark itself Send **Quark Events** to a channel only admins can see. It records every change to Quark's settings in your server: log channels, ignore rules, automation rules, tags, API tokens, dashboard access and subscription changes, with who made the change. ## Give moderators the log viewer Moderators often do not have Manage Server. Give their role the **Log viewer** preset under **Settings → Dashboard Access** and they can read and search logs on the web without being able to change anything. See [sharing access](/dashboard/access). ## Answers to common questions as tags Create tags for your rules, your appeal process or your FAQ on the dashboard, then post one with `/tags send`. Add the `user` option to mention the member you are answering. See [tags](/commands/tags). ## Hear about outages and updates When you set a log channel, Quark's confirmation message in that channel has a button to follow Quark's developer updates. Press it and downtime notices and announcements from the developers are posted in that channel. Quark's reply includes a **Disable** button to stop them. You need Manage Server or Manage Channels to use it. You can also choose the channel, move it or switch the updates off under **Settings → Status updates** on the [dashboard](/dashboard/overview#settings). ## A colour for each log type With Quark Pro or Pro Lite, set an **Embed Color** per log type so the logs you care about stand out, for example red for bans and grey for voice. See [customization](/logs/customization). # Introduction Source: https://docs.quark.bot/introduction Welcome to Quark ![Quark banner](https://mintcdn.com/quarkbot/AdhntQPLzKGv4V5-/images/banner.png?fit=max\&auto=format\&n=AdhntQPLzKGv4V5-\&q=85\&s=09ed372036f95f38908988d8a6775c81) ## What Quark is Quark is a logging bot for Discord. It records what happens in your server (deleted and edited messages, deleted files, joins and leaves, voice activity, role and channel changes, moderation actions) and posts each event to a log channel you choose. You can also read and search the same logs on the web. > [card] [Invite Quark](https://quark.bot/api/invite?source=docs) > > Add Quark to your Discord server > [card] [Quickstart](/quickstart) > > Get your first log in a few minutes ## Find your way around > [card] [Log types](/logs/types) > > All 116 things Quark can log > [card] [Where logs go](/logs/overview) > > Send each category of log to its own channel > [card] [Log viewer](/logs/viewer) > > Read, filter and search your logs on the web > [card] [Options](/logs/options) > > Ignore channels, members and roles, and tune what is logged > [card] [Troubleshooting](/troubleshooting) > > Logs not showing up? Start here > [card] [Permissions](/permissions) > > What Quark needs, and what it loses without each permission > [card] [Subscriptions](/subscriptions/overview) > > What Quark Pro adds, and how it is priced per server > [card] [API reference](/api-reference/introduction) > > Configure Quark and read logs from your own code > [!WARNING] > > Quark stores messages and files from your server so it can log them. Read the [terms of service](https://quark.bot/legal/terms) and [privacy policy](https://quark.bot/legal/privacy-policy) before you add it, and let your members know their activity is logged. ## Contribute to these docs These docs are open source. If something is wrong or missing, open a pull request. > [card] [Docs repository](https://github.com/quark-bot-discord/docs) > > Edit these docs on GitHub # Adding a new language Source: https://docs.quark.bot/languages/add-language Add a language Quark does not have yet If your language is not in the [supported list](/languages/overview#supported-languages), you can start it yourself. You need a Weblate account first. See [start translating](/languages/start-translating). ### 1. Find the language code Look up the code for your language in this [list of language codes](https://www.w3schools.com/tags/ref_language_codes.asp). French is `fr`, for example. ### 2. Open the language on Weblate Put the code at the end of this address: ``` https://languages.quark.bot/projects/quark-bot/-/LANGUAGE_CODE/ ``` For French: ``` https://languages.quark.bot/projects/quark-bot/-/fr/ ``` ### 3. Start the first component Press the **+** button next to the first component. You only need to do this once. \[!WARNING] It can take a moment for the change to appear. ![Create translation](https://mintcdn.com/quarkbot/AdhntQPLzKGv4V5-/images/add-language/createTranslation.png?fit=max\&auto=format\&n=AdhntQPLzKGv4V5-\&q=85\&s=ebaf68a1932b2e214cd6b1e07c7e15fb) ### 4. Translate Translate the strings, following the [rules for translations](/languages/start-translating#rules-for-translations). A new language has to be switched on by the developers before it can be chosen in `/language`. Ask in the [support server](https://quark.bot/support) when your translation is ready. # Overview Source: https://docs.quark.bot/languages/overview The languages Quark speaks and how to change yours [![Translation status](https://languages.quark.bot/widget/quark-bot/multi-auto.svg)](https://languages.quark.bot/engage/quark-bot/) Quark's logs and command replies can be shown in 19 languages. The language is a setting for the whole server. ## Change your server's language * In Discord: run `/language` and choose from the list. You need **Manage Channels** and **Manage Server**. * On the dashboard: **Settings → Language**. When Quark joins a Community server, it starts in the server's primary language where it can. Otherwise it starts in English (US). You can change it at any time. Changing the language produces a **Language Changed** log. ## Supported languages | Language | Code | | - | - | | English, US | `en_us` | | English, UK | `en_gb` | | Türkçe | `tr` | | Tiếng Việt | `vi` | | Pirate Speak, The Seven Seas | `en_pr` | | Polski | `pl` | | Nederlands | `nl` | | Español, España | `es_es` | | Italiano | `it` | | Deutsch | `de` | | Français | `fr` | | Русский | `ru` | | Ελληνικά | `el` | | 繁體中文 | `zh_hant` | | 한국어 | `ko` | | Slovenščina | `sl` | | العربية | `ar` | | Magyar | `hu` | | 日本語 | `ja` | > [!NOTE] > > Not every language is fully translated. Anything that has not been translated yet is shown in English (US). The chart at the top of this page shows how complete each language is. ## Help translate Translations are written by the community. If your language is missing, or has gaps, you can add to it. > [card] [Start translating](/languages/start-translating) > > How to contribute translations > [card] [Add a new language](/languages/add-language) > > How to add a language Quark does not have yet ## Contributors Thank you to everyone who has contributed translations, including: * ThatKev (@thatkev) * Impulse (@impulsase14) * neya! (@everygoddamnusernameistaken) * and everyone on [Weblate](https://languages.quark.bot/projects/quark-bot/) # Start translating Source: https://docs.quark.bot/languages/start-translating Contribute translations to Quark Quark's translations are managed with Weblate at [languages.quark.bot](https://languages.quark.bot/engage/quark-bot/). You translate in your browser. No code or Git is needed. ## How to contribute ### 1. Create a Weblate account [Register here](https://languages.quark.bot/accounts/register/) and verify your email address. \[!WARNING] Your email address is public by default. The next step hides it. ### 2. Hide your email address In your [profile settings](https://languages.quark.bot/accounts/profile/), change your email to the no-reply address Weblate provides. It looks like `username@users.noreply.languages.quark.bot`. ### 3. Start translating Open the [Quark project](https://languages.quark.bot/projects/quark-bot/), choose your language and translate. \[!TIP] If your language is not listed, see [adding a new language](/languages/add-language). ## Rules for translations * **Be accurate.** Translate the meaning, not word for word. * **Make sense.** Read it back as a native speaker would. * **Keep the format.** Line breaks, punctuation and Markdown such as `**bold**` should stay as they are. * **Do not translate anything inside curly brackets.** Text such as `{user}` or `{channel}` is replaced by Quark when the message is sent. Move it to wherever it belongs in your sentence, but leave the text inside the brackets exactly as it is. ## When your translation appears New translations reach Quark with its next update, so they do not show up immediately. A new language becomes selectable in `/language` once the developers have switched it on. # Behaviour Source: https://docs.quark.bot/logs/behaviour The rules Quark follows when deciding what to log and how ## How logs are delivered Quark posts logs through a **webhook** that it creates in each log channel. That is why it needs **Manage Webhooks** there. Logs appear under the name **Quark**, **Quark Pro Lite** or **Quark Pro**, depending on your server's plan. With Pro Lite or Pro you can choose a name and avatar of your own on the dashboard: see [name and avatar](/logs/customization#name-and-avatar). If the webhook or the log channel is deleted, logs to that channel stop. After five failed attempts in a row, Quark clears the channel from your configuration, so the setting looks empty. Choose a channel again on the dashboard, or run `/troubleshoot` and press **Register webhook**. A channel set for a single log type is not cleared automatically. If Quark only loses a permission, nothing is cleared. Logs resume when the permission is back. ## Message age To show what a deleted or edited message said, Quark has to have stored the message when it was sent. | Plan | Quark keeps message content for | | - | - | | Free and Pro Lite | 12 hours | | Quark Pro | 30 days | What happens with an older message: * **Deleted**: the log is sent without the content or the author. On the free plan and Pro Lite, the log says the content is available with Quark Pro. You can turn that notice off under **Logging → Other → Pro upsell logs**. With it off, a deleted message that is too old produces no log at all. * **Edited**: the log shows the author and the new text, but not what the message said before. * **Older than 30 days**: a deletion is not logged on any plan. How long a message is kept is decided when it is sent. Upgrading does not bring back messages that were stored under the 12-hour limit. Quark cannot show messages that were sent before it joined, or in channels it could not see. ## Edited embeds A bot that edits the embeds on its own message, such as a now-playing card or a giveaway's countdown, produces a **Message Edited** log that says what changed: an embed added or removed, or its title, description, link, colour, author, footer, image, thumbnail or a field. If the text changed as well, the log shows both. * Only a bot's own embeds count. A member's embeds are link previews, so a link unfurling, or being hidden, is not an edit and is not logged. A link in a bot's own message getting its preview is not an edit either. An edit that changes the text is logged as before, whether or not its embeds change. A file taken off a bot's message is logged as a removed file, as it always was, even when an embed changed in the same edit. * A bot's embed-only edits are logged at most once per message every five minutes. The first says the message is being edited; the ones that follow inside those five minutes are not logged. An edit to the text is always logged. * The old rule that dropped an edit when the number of embeds changed is gone. ## Forum and media channel settings **Channel Updated** says when the settings of a forum or media channel change: its guidelines, a tag renamed or given another emoji or made moderators-only, the default reaction, the post slowmode, the sort order, the default layout, whether a tag is required, and how long before a post is hidden for inactivity. They are part of Channel Updated, not log types of their own. An update whose changes the log has no words for, such as a flag Discord added, is not sent. ## Forwarded messages and command replies When a deleted message was a forward, the log shows what it carried: its text, files, stickers and embeds, "Forwarded from" and the channel, or "another server", with a link to the original where Discord gave one, and when the original was sent and edited. Single and bulk deletes both show this, and the [log viewer](/logs/viewer) keeps it. When a deleted message was a bot's answer to a slash command, the log adds **Command run by**, the member and the command, such as `/ban`. For an answer to a button, a menu or a form, it says **Triggered by** and the member. ## Actions by bots | Plan | Actions done by a bot, or done to a bot | | - | - | | Free | Not logged | | Pro Lite and Quark Pro | Not logged by default. Change this under **Logging → Ignore Rules → Actions by bots** and **Actions on bots** | These log types are always sent, on every plan, whoever did them: member joins and leaves, bots added and removed, bulk message deletes, and bans, unbans, kicks, timeouts and timeouts removed. An action a moderator takes through Wick, YAGPDB, Sapphire or ProBot counts as the moderator's, not the bot's. It is logged on the free plan, and on a paid plan it is logged even when **Actions by bots** is on. An action taken through any other bot, apart from Quark's own commands, counts as the bot's, even when that bot's audit log reason puts a moderator's name on the log. See [bot integrations](/logs/integrations). ## Who did it Discord does not tell a bot who performed most actions. Quark finds out from the server's audit log, which needs the **View Audit Log** permission. Without it, many log types are not sent at all and others lose the moderator. See [permissions](/permissions#view-audit-log). * When a moderator acted through Wick, YAGPDB, Sapphire or ProBot, the log names the moderator and adds which bot was used, for example "using Sapphire#8184". This applies to every log built from the audit log, apart from single deleted messages and voice moves, disconnects, mutes and deafens. See [bot integrations](/logs/integrations). * A deleted message shows **Deleted by** when someone other than the author deleted it. If a bot deleted it for a moderator, this shows the bot. * Soundboard and AutoMod rule logs are sent either way, but only say who made the change if Quark can read the audit log. * Message Pinned and Message Unpinned only say who pinned or unpinned the message when the audit log says. Without View Audit Log they are only sent for a message Quark had stored. * A voice move or disconnect done by a moderator is logged as **Moved** or **Disconnected**. If the member did it themselves, it is **Changed Channel** or **Left Channel**. If a bot did it for a moderator, these show the bot. * Server mutes and deafens show the moderator on Quark Pro only. ## Bundling Voice events and reaction removals often come in bursts. When several happen close together, Quark sends one log instead of many: **Multiple Voice Channel Events** or **Multiple Reactions Removed**. A single event on its own is logged as normal. Several thread joins and leaves at the same moment are sent together as **Multiple Thread Member Events**. If that log type is switched off or has no channel, each join and leave is sent on its own instead. [Automation](/dashboard/automations#when) rules that watch the individual log types run for each event in a bundle. ## Closed and locked threads **Thread Closed**, **Thread Reopened**, **Thread Locked** and **Thread Unlocked** are sent when someone closes, reopens, locks or unlocks a thread or a forum post. They are built from the audit log, so a thread Discord closes by itself for inactivity, or reopens because someone posted in it, is not logged. Each of the four says one thing only. Discord's **Close and lock** closes and locks in one action, so it sends two logs: Thread Closed, then Thread Locked. Switch either one off and you still get the other. Every other change to a thread is a **Thread Updated** log: its name, slowmode, auto-archive duration, tags, whether it is pinned and whether members can invite. A change like that made in the same action as a close or a lock is sent as its own Thread Updated log. These four used to be part of Thread Updated. An [automation](/dashboard/automations#when) rule that names Thread Updated no longer runs for them: add the new log types to the rule. A rule that watches the whole Messages category is not affected. ## Time in voice Some voice logs say how long something lasted. | Log | What it adds | | - | - | | Left Channel, Disconnected | **Channels**: each voice channel of the session, in order, with the time spent in it | | Changed Channel, Moved | **Time in** the channel the member came from | | Stream Ended | **Streamed for**: how long the stream lasted. A leave, disconnect, switch or move that ends a stream carries the same line | * A session spent in one channel has no list. The **Joined** line already says how long it lasted. * A leave log lists up to ten channels. With more, some are replaced by a count, such as "… +3", and the last channel is always shown. * A list that starts with "…" is partial: Quark did not see the start of the session, or a channel was left out. * Channels on your [ignore rules](/logs/options#ignore-rules), and channels in ignored categories, are left out of the list. * Stays shorter than two seconds are not listed. * If Quark did not see the stream start, there is no **Streamed for** line. * In a bundled log, each event shows its most recent channels on one line, where there is room. ## Boosts **Server Boosted** and **Server Boost Removed** are sent once for each boost and name the member. The log says "Someone" when Discord does not say who it was: a member who is already boosting adds another boost while the server's boost messages are switched off, or a member removes one of several boosts. ## Deleted files Quark keeps a copy of each file posted in your server for a short time, so that it can re-post the file if the message is deleted. See [data](/data/behaviour) for how long. * Very large files cannot be re-posted. The cut-off rises with your server's boost level. * With **Spoilers** switched on, re-posted files are marked as spoilers. * Bulk deletes attach a text file listing the deleted messages. For a message from a bot or a webhook, and any message with no text of its own, the file writes out what each embed said. ## Rate limits Discord limits how many messages can be posted to one channel in a given time. If your server produces logs faster than that: * The dashboard's Channels tab shows a warning naming the channel. * If it goes on, Quark pauses the busiest log type in that channel so the others keep arriving. It resumes on its own when the channel is quieter. The limit is per channel. Moving one or two categories to their own channels is the fix. A short burst does not lose logs. When a channel is over its limit, the logs that would not fit wait in a queue for that channel and are posted, in order, as the limit allows. A queue holds up to six hours of logs; past that, or when the queue is full, the busiest log type is paused as above. A log that had to be retried is normally posted once, not twice. On a busy channel, logs that arrive at almost the same moment can be posted together as one message. A modlog that shares its message with another log is posted without its **Edit Reason** and **Lock** buttons, so its reason cannot be edited or locked. See [modlog reasons](/commands/behaviour#modlog-reasons). A log with an [action button](/dashboard/formats#action-buttons) is never posted together with another. It goes out by itself. ## Language Logs are written in your server's language. See [languages](/languages/overview). ## Your settings changes are logged too Changing a log channel, the ignore rules, a logging option, a [log format](/dashboard/formats#what-is-logged), an [automation](/dashboard/automations) rule, a tag, an API token or dashboard access produces a log in the **Quark Events** category, with who made the change. A **Dashboard Access Changed** log names the preset and each permission that was given. Changes to one log type produce a **Log Updated** log: switching it on or off, setting a channel of its own, changing its colour, and its bot and Active Ignore switches. Three things are not logged: taking a log type's own channel away, **Follow the server's format**, and any of these changes while Log Updated itself is switched off, which includes switching it off. A change made by someone on your **Who did it** ignore list is not logged either. [Active Ignore](/logs/options#active-ignore) requests are recorded there too. # Customization Source: https://docs.quark.bot/logs/customization Change how your logs look and where each one goes ## What you can change | What | Where on the dashboard | Plan | | - | - | - | | A channel for each category | Logging → Channels | Free | | Switch a category or a log type off | Logging → Channels, Logging → Individual Log Config | Free | | Which standard buttons appear on logs. Some newly added servers start with none: see [log buttons](/logs/options#log-buttons) | Logging → Other → Buttons | Free | | Spoiler re-posted files | Logging → Other → Spoilers | Free | | Language | Settings → Language | Free | | Colour of a log type | Logging → Individual Log Config → Embed Color | Pro Lite or Pro | | One of Quark's own formats, for all logs | Log Formats | Free | | Which parts a log shows, its wording, buttons and layout, for every log or one log type | Log Formats → Create a format | Pro Lite or Pro | | Logs drawn as pictures | Log Formats → Image cards, or the Image layout | Pro | | A channel for one log type | Logging → Individual Log Config → Separate Logging Channel | Pro Lite or Pro | | Log actions by and to bots | Logging → Ignore Rules → Actions by bots, Actions on bots | Pro Lite or Pro | | The name and avatar logs are posted under, for the server or one log channel | Logging → Other → Log name and avatar | Pro Lite or Pro | Quark's own formats are free on every plan, and so is building your own. Posting logs in a format you made needs Pro Lite or Pro. ## Colours Each log type has a default colour. To change one, go to **Logging → Individual Log Config**, choose the log type, and pick an **Embed Color**. You can reset it to the default at any time. Colours are set per log type. There is no single colour for all logs. ## Formats | Format | What it looks like | | - | - | | Standard | An embed. This is the default | | Standard (no embed) | The same information as plain text instead of an embed | | Compact | A small embed with one or two lines for each log | | Compact (no embed) | One or two lines of plain text, and no buttons | | Basic, Basic (no embed) | Each log's facts and nothing else, with no icons | | Detailed | Standard with every extra detail a log has | | JSON | Each log as JSON, for another bot to read | | Components | Laid out with Discord's newer components, with the buttons inside the message | | Image cards | Each log drawn as a picture. Quark Pro only | Set the format on the **Log Formats** page. Individual Log Config no longer has a Format option: to make one log type look different, build a format and change that log in it. A deleted message's own embeds, such as a link preview or a GIF, are posted with its log in every format except JSON. See [a deleted message's embeds](/dashboard/formats#a-deleted-messages-embeds). On the same page you can build a format of your own: hide or spoiler parts of a log, add extra information, your own text and link buttons, and change the colour or layout, one log at a time. A format can be shared with a link, or on the [Marketplace](/dashboard/marketplace). See [log formats](/dashboard/formats). ## A channel for one log type By default a log goes to its category's channel. With Pro Lite or Pro you can send a single log type somewhere else, for example bans to a channel of their own while other modlogs stay together. Go to **Logging → Individual Log Config**, choose the log type, and set **Separate Logging Channel**. You can also do this in Discord: run `/logging`, pick the category, then the log type. ## Name and avatar Logs are posted under **Quark**, **Quark Pro Lite** or **Quark Pro**, with Quark's picture. With Pro Lite or Pro you can post them under a name and picture of your own, for the whole server and for each log channel. Go to **Logging → Other** and scroll to **Log name and avatar** at the bottom. Type a name, and choose an avatar. Changes save as you make them: an avatar straight away, a name when you stop typing or leave the field. The preview shows how logs will look. Leave the name empty to keep Quark's. | Avatar | What it is | | - | - | | Quark's | Quark's picture for your plan | | Server icon | Your server's icon, as it is when each log is sent. It can't be chosen while the server has no icon | | Quark's pictures | Quark's logo in six colours, and a shield, gavel, eye, bell, scroll, message, members and voice symbol. Under **More pictures** | | Server emojis | Any of your server's custom emojis. Under **More pictures** | | Role icons | The icon of any role that has one. Under **More pictures**. Role icons need server boost level 2 | You can't upload a picture. If the emoji or role icon you chose is deleted, or your server removes its icon, logs go back to Quark's picture. No log is lost over it. A name can be up to 80 characters. Discord doesn't allow "discord" or "clyde" in it, "everyone" or "here" as the whole name, or @, #, :, \`\`\` and invisible characters. The field says so as you type, and a name Discord would refuse is not saved. ### A different one for a log channel Under **Per log channel**, each of your log channels is listed with what is sent there: the main channel, each category's channel, Files, Age-restricted, and the channels of log types that have one of their own. A channel used for several of these is listed once. Give any of them a name or avatar of its own, for example "Mod Log" with the gavel in your modlog channel. Leave the name empty, or the avatar on **Same as server**, and that channel uses the setting above. * A new name or avatar is used from the next log. Logs already posted keep the name they were posted under. * If you move a category to a different channel, its logs take that channel's own setting, or the server's if it has none. * Renaming Quark's webhook in Discord does not change the name. Quark sets the name and avatar on every log. * A log Quark posts itself, because the channel has no webhook, appears under the bot's own name and picture. See [how logs are delivered](/logs/behaviour#how-logs-are-delivered). * Each change produces a **Logging Options Updated** log in Quark Events. * [Import settings](/dashboard/overview#import-settings-from-another-server) copies the name and avatar to a server with Pro Lite or Pro, and each log channel's own to the channel you pair with it. A role icon is matched to the role you pair it with. An emoji belongs to the other server, so this server keeps its own avatar instead, and the import says so. ## Try the paid options for free Locked options on the dashboard link to Quark's vote page. On a server under 1,000 members, each vote on Top.gg unlocks Pro Lite for 24 hours. See [voting](/subscriptions/voting). ## When a plan ends Your colours, your own formats, per-log channels and log name and avatar stay saved, but Quark stops applying them and goes back to the defaults. A format you built is kept as it was, and its changes are parked. They apply again as soon as the server has Pro Lite or Pro. # Examples Source: https://docs.quark.bot/logs/examples What member and message logs look like in a server These are real logs from Quark's support server. Usernames, user IDs and profile pictures are blurred. ## Member logs Member logs are built from the member join, update and leave events Discord sends Quark. ### User Joined Shows who joined, how old their account is and which invite they used. The **Ban** button bans them straight away. ![A User Joined log showing the account creation date, the invite used and the member count](https://mintcdn.com/quarkbot/ZWILkxWDmcVW-sGg/images/log-examples/user-joined.png?fit=max\&auto=format\&n=ZWILkxWDmcVW-sGg\&q=85\&s=f4fc7c25c3955971aeab6bd38d71ee25) ### User Left Shows who left and when they first joined. ![A User Left log showing when the member joined the server](https://mintcdn.com/quarkbot/ZWILkxWDmcVW-sGg/images/log-examples/user-left.png?fit=max\&auto=format\&n=ZWILkxWDmcVW-sGg\&q=85\&s=e824b9ba73a4ef6e9cc72b431a02f423) ### Role Given Shows which role a member was given, and who gave it. ![A Role Given log showing the role and the moderator who gave it](https://mintcdn.com/quarkbot/ZWILkxWDmcVW-sGg/images/log-examples/role-given.png?fit=max\&auto=format\&n=ZWILkxWDmcVW-sGg\&q=85\&s=488c7cd5fe9a29c561e0dde7a51a7403) ## Message logs Discord does not send the content of a message when it is deleted, or the old version when it is edited. Quark keeps a copy of each message for a limited time so these logs can show it. See [data behaviour](/data/behaviour) for how long. ### Message Deleted Shows what the message said, who sent it and where. ![A Message Deleted log showing the message content, the author and the channel](https://mintcdn.com/quarkbot/ZWILkxWDmcVW-sGg/images/log-examples/message-deleted.png?fit=max\&auto=format\&n=ZWILkxWDmcVW-sGg\&q=85\&s=abe80157c31d62a807e5678a4c551f40) ### Message Edited Shows the message before and after the edit. **Show Edits** shows what changed, word by word. ![A Message Edited log showing the message before and after the edit](https://mintcdn.com/quarkbot/ZWILkxWDmcVW-sGg/images/log-examples/message-edited.png?fit=max\&auto=format\&n=ZWILkxWDmcVW-sGg\&q=85\&s=5757d205a69c2a90eddd41e5599c49ee) For every log type Quark can send, see [types](/logs/types). # Bot integrations Source: https://docs.quark.bot/logs/integrations How Quark works alongside PluralKit and moderation bots ## Moderation bots When a moderator does something through another bot, Discord's audit log records the bot as the one who did it. Quark reads the reason the bot left in the audit log, finds the moderator who gave the command, and shows **them** as the one who did it. The log also says which bot was used, after the moderator's name: "using Sapphire#8184". Quark reads the reasons written by: * [Wick](https://wick.bot) * [YAGPDB](https://yagpdb.xyz) * [Sapphire](https://sapph.xyz) * [ProBot](https://probot.io) There is nothing to switch on, and it works on every plan. | | How it works | | - | - | | Logs it applies to | Every log built from the audit log: modlogs, the User Left log of a kick or ban, role, channel, server, nickname, invite, emoji, sticker, event, webhook, thread and stage changes, bulk deletes and bots added. The [types table](/logs/types) marks most of them as needing View Audit Log | | Logs it does not apply to | A single deleted message, and voice logs (Moved, Disconnected, server mutes and deafens). These show the bot | | A name Quark cannot match | If the reason names nobody in your server, the log shows the bot | | An action the bot took by itself | The log shows the bot, with no "using" | ### What this changes about which logs you get An action a moderator takes through one of these bots is treated as the moderator's action, not the bot's. So it is logged on the free plan, and on a paid plan it is logged even when **Actions by bots** is on. See [actions by bots](/logs/behaviour#actions-by-bots). Your ignore rules apply to the moderator. If the bot itself, or one of its roles, is under **Who did it** or **Roles that did it**, actions taken through it are still left out. Modlogs are the exception: a ban, kick or timeout a moderator made through an ignored bot is still logged. ### Your own bot Any bot can have the moderator shown on its logs. When your bot does something for a moderator, start the audit log reason with the moderator's user ID in square brackets: ``` [301655085954367490] Spamming in #general ``` Quark shows that member as the one who did it, says which bot was used, and removes the prefix from the reason. Showing the name is all the prefix does. Quark cannot check what another bot wrote, so everything else treats the action as the bot's: | | What applies | | - | - | | Bot rules | The action counts as done by a bot. It is not logged on the free plan, or on a paid plan while **Actions by bots** is on. Log types that are always sent for bots are still sent | | Ignore rules | **Who did it** and **Roles that did it** apply to the bot, not to the moderator shown. To leave these logs out, add the bot or one of its roles. Modlogs are still logged either way | | Active Ignore | A request has to name the bot as the one who does it, not the moderator | | Automations | A rule reads the bot as the person who did it, and does not moderate "the person who did it" on these logs | Quark's own `/ban`, `/kick` and `/mute` commands use the same convention. Quark does trust its own commands, so those count as the moderator's actions, as actions through the four bots above do. > [!WARNING] > > The name shown is whatever the bot wrote. If your bot copies a moderator's own text to the start of the audit log reason, a moderator can put someone else's ID there, and that person is shown on the log and in the [log viewer](/logs/viewer), with the bot's name beside theirs. Have your bot write the prefix itself. To change Quark's configuration or read logs from your bot, see the [API reference](/api-reference/introduction). ## PluralKit [PluralKit](https://pluralkit.me) deletes a member's message and re-posts it through a webhook. Without help, every proxied message produces a Message Deleted log. Turn on **Logging → Other → PluralKit Compatibility** and Quark checks with PluralKit whenever a message is deleted within 10 seconds of being sent and no moderator deleted it. If PluralKit says it proxied that message, the Message Deleted log is skipped. * It is off by default and free on every plan. * When it is on, Quark sends the ID of the deleted message to PluralKit's API to make the check. Nothing else is sent. * It only affects that one log. Other logs are unchanged. ## Other bots Actions by other bots follow the bot rules: not logged on the free plan, and optional on Pro Lite and Quark Pro. See [actions by bots](/logs/behaviour#actions-by-bots). Want Quark to work with your service? Ask in the [support server](https://quark.bot/support). # Options Source: https://docs.quark.bot/logs/options Ignore rules and the other settings that decide what gets logged All of these are on the dashboard under **Logging**. Everything on this page is free unless marked. > [!NOTE] > > On a server with an [automation](/dashboard/automations) rule that moderates, a change here that lets more be logged needs a Discord permission as well. See [changes that let more logs reach a rule](/dashboard/automations#changes-that-let-more-logs-reach-a-rule). ## Ignore rules **Logging → Ignore Rules.** Anything you add here is left out of your logs. To do something when a log matches, instead of leaving it out, use [automations](/dashboard/automations). Two words matter. An **executor** is whoever did something. A **target** is whoever, or whatever, it was done to. If a moderator deletes a member's message, the moderator is the executor and the member is the target. | Group | List | What is left out | | - | - | - | | People | Who did it | Anything done by this member (an executor), or any change to Quark's settings made with this [API token](/api-reference/introduction) | | People | Who it happened to | Anything done to this member (a target) | | Roles | Roles that did it | Anything done by a member with this role | | Roles | Roles it happened to | Anything done to a member with this role | | Channels | Channels | Message, thread, voice and channel events in this channel | | Channels | Categories | The same, for every channel in the category | | Messages | Exact content | Deletions of messages with exactly this content | * Add members by searching for them or pasting a user ID. * **Who did it** also takes one of the server's API tokens. Type "token" or "api" to list them, or paste a token's ID. The list, the log viewer and your notifications name a token by the start of its ID, as "API token Ab3dE5…"; people given dashboard access see only that start, and only a manager can take a token off the list; the **API tokens** page under Settings shows the same start beside each token, with a button to copy the whole ID. A change made with an ignored token, such as a rule or an ignore rule saved through the API, is not logged. A token only applies in the server it belongs to, so [importing](/dashboard/overview#import-settings-from-another-server) another server's ignore rules leaves its tokens out. * A forum or media channel is ignored together with all its posts, whether it is on the Channels list or the Categories list. Messages, edits, pins, reactions and bulk deletes in a post are all left out. * A thread in a text or announcement channel is different. Ignoring the channel does not ignore the messages in its threads. * If Quark cannot find out whether a channel on the Channels list is a forum, it treats it as one, and a post in it is not logged. * **Exact content** only matches the whole message, exactly. It is meant for things like bot commands. * Each entry can be up to 100 characters. * Each list holds up to 500 entries. Something already on a list is not added twice. > [!NOTE] > > If Quark cannot tell who did something, because it has no access to the audit log, **Who did it** and **Roles that did it** cannot apply to that log. See [permissions](/permissions#view-audit-log). ### Bots Two switches in the **Bots** group at the bottom of the same tab decide whether actions involving bots are logged. | Switch | When it is on | | - | - | | Actions by bots | Actions done **by** a bot are not logged | | Actions on bots | Actions done **to** a bot are not logged | Both are on by default. Turning them off needs **Quark Pro or Pro Lite**. On the free plan they stay on. Some log types ignore these switches and are always sent. See [actions by bots](/logs/behaviour#actions-by-bots). ## Switch log types on and off * **A whole category**: turn its switch off under **Logging → Channels**. * **One log type**: under **Logging → Channels**, press **Log types** on the category to open its list, then press the log type. A dimmed one is off. The settings button at the end of each log type opens its [Individual Log Config](/dashboard/overview#logging), where **Enabled** does the same, and the channel and colour are set. The list stays open while you visit a log type's settings and come back. You can do both in Discord with `/logging`. ## Other options **Logging → Other.** | Option | What it does | Default | | - | - | - | | Spoilers | Marks re-posted files in your logs as spoilers, so they are hidden until clicked | Off | | Buttons | Chooses which of the User ID, Support Server and Customise buttons appear on every log. To reorder them, remove a log's other buttons or add link buttons, use [log formats](/dashboard/formats#change-the-buttons) | All three, or none on some newly added servers. See [below](#log-buttons) | | Modlog reasons | How long a modlog's reason can be edited with **Edit Reason**: Always editable, Lock after 1 hour, 24 hours, 7 days or 30 days, or Never editable. See [below](#modlog-reasons) | Always editable | | PluralKit Compatibility | Stops PluralKit's proxying from filling your logs with deleted messages. See [bot integrations](/logs/integrations#pluralkit) | Off | | Pro upsell logs | Shows a note in a log when part of it is only available with Quark Pro. See [message age](/logs/behaviour#message-age) | On | | Log name and avatar | The name and picture logs are posted under, for the server and for each log channel. Pro Lite or Pro. See [name and avatar](/logs/customization#name-and-avatar) | Quark's | The format of your logs is no longer set on this tab. It has a page of its own: see [log formats](/dashboard/formats). To spoiler other parts of a log than its files, see [hide or spoiler something](/dashboard/formats#hide-or-spoiler-something). ### Log buttons Most servers start with all three standard buttons on their logs. Some newly added servers start with none. Which one your server has is shown under **Logging → Other → Buttons**: the switches show what your logs get. To turn them on, go to **Logging → Other → Buttons** and switch on User ID, Support Server or Customise. The change applies to logs posted from then on. When a server starts without them, the message Quark sends after you choose a log channel with `/logging`, and the setup page after adding Quark, say where to turn them on. A log's own buttons, such as Edit Reason and Lock on a modlog, are not affected. ### Modlog reasons * The time is counted from when the modlog was posted. Once it has passed, Edit Reason replies that the modlog is locked. * A timed lock is not written on the modlog. If you choose a longer time, or **Always editable**, older modlogs can be edited again. * **Never editable** is different. Modlogs posted while it is set have no Edit Reason button, and do not gain one if you change the setting later. * A moderator can also lock a single modlog with its **Lock** button. Unlike a timed lock, that one is permanent: no setting here makes the modlog editable again. See [buttons on logs](/commands/behaviour#buttons-on-logs). * Changing the setting produces a **Logging Options Updated** log. ## Active Ignore Active Ignore is for servers that run a bot of their own. It lets the bot ask Quark not to log something the bot is about to do, or has just done, such as a message it deletes as part of a command. 1. Switch **Active Ignore** on for the log type under **Logging → Individual Log Config**. 2. Have your bot send a request to the [API](/api-reference/introduction), naming who will do it or what it will be done to. Quark leaves out the next matching log. * A request covers one log unless it asks for more, and lasts 10 seconds unless it asks for longer. The most is 100 logs and five minutes. * While Active Ignore is on for a log type, every log of that type is held for about three seconds before it is sent, so that a request made just after the action still counts. Leave it off unless your bot uses it. * When many logs arrive at once, some are sent without that wait, and only a request made before the action leaves those out. Where you can, send the request before your bot acts. * A request is not used up by a log your ignore rules leave out anyway. * To switch it on for every log type at once, set `active_ignore` through the API. * A request that names no log type never leaves out a modlog (Ban, Unban, Kick, Timeout, Timeout Removed), a Quark Events log, Member Leave or Bot Removed. To leave one of those out, the request has to name the log type and be made with an Admin token. A Basic token is refused. * Quark records requests in Quark Events, as an **Ignore Options Updated** log that names the token by its ID and says what was asked for. A request that names one of those log types is recorded every time. Any other request is recorded once an hour for each token, and that log shows the token's first request of the hour, not the ones that followed. * The record is posted even when Ignore Options Updated is switched off. Nothing is posted if Quark Events is switched off or has no channel to go to. ## Per-server settings **Settings** in the sidebar. | Setting | What it does | | - | - | | Language | The language Quark uses in your server. Also `/language` in Discord | # Overview Source: https://docs.quark.bot/logs/overview What a log looks like and how Quark decides where to send it When something happens in your server, Quark builds a log and posts it in a log channel. This page covers what is in a log and how it gets to the right channel. For the full list of what can be logged, see [types](/logs/types). ## What is in a log A standard log is an embed with the parts below. A [log format](/dashboard/formats) can change which of them are shown and how the log is laid out. * **The member** it is about, with their avatar, at the top. * **A title** with an icon, such as "Message Deleted" or "User Joined". * **The details**: the message content, the channel, the moderator, the reason, and so on, depending on the log type. * **The time** it happened: when Discord told Quark about it, not when the log was posted. A log that waited for the audit log, or was sent again after a delay, still shows when it happened. Logs about changes to Quark's settings, and what an automation rule did, are dated when they were made. For a deleted message, the time is when the message was sent. * **A footer** with `ID:` followed by an ID, usually the user ID of the member the log is about. Join and leave logs also show the server's member count. ### Buttons Every log can carry up to three standard buttons. Choose which appear under **Logging → Other → Buttons** on the dashboard. Some newly added servers start with them switched off: see [log buttons](/logs/options#log-buttons). A [log format](/dashboard/formats#change-the-buttons) can reorder them, leave them off some logs, and add link buttons of your own. With Quark Pro it can also add [action buttons](/dashboard/formats#action-buttons), which moderate or send a message when pressed. | Button | What it does | | - | - | | User ID | Replies with the member's ID, only to you, so it is easy to copy on a phone | | Support Server | Opens Quark's support server | | Customize | Replies, only to you, with a link to the dashboard. On the free plan the reply explains Quark Pro instead | Some log types have a button of their own: | Log | Button | What it does | | - | - | - | | User Joined | Ban | Bans that member straight away. Needs **Ban Members** | | Message Edited | Show Edits | Shows what changed, word by word, only to you. Appears on every edit log that holds both versions of the message. See [Show Edits](/commands/behaviour#show-edits) | | Ban, Unban, Kick, Timeout, Timeout Removed | Edit Reason | Lets a moderator rewrite the reason on that log, and add or remove up to 4 images. Needs **Timeout Members**, **Kick Members** or **Ban Members** | | Ban, Unban, Kick, Timeout, Timeout Removed | Lock | Stops the reason being edited, for good. Edit Reason and Lock are removed from the modlog, and it cannot be unlocked. Needs one of the three permissions above or **Manage Server** | | Ban, Unban, Kick, Timeout, Timeout Removed | History | Shows who edited the reason, changed the images or locked the modlog, only to you. Appears after the first change | | Role or channel permissions updated | View Full New Permissions | Shows the complete list when it is too long for the log | > [!WARNING] > > The **Ban** button bans immediately. There is no confirmation step. When a reason is edited, the modlog gains a line under the reason: "Edited by", the moderator and the time. To stop reasons being edited after a set time, or at all, see [modlog reasons](/logs/options#modlog-reasons). For who can use each button, how images on a modlog work and what History shows on each plan, see [buttons on logs](/commands/behaviour#buttons-on-logs). ### The Apps menu Three more actions are in a log's menu. Right-click the log, or long-press it on a phone, and choose **Apps**. | Command | What it does | | - | - | | Get IDs | Replies, only to you, with every ID in the log, each with a button that gives you that ID to copy. See [Get IDs](/commands/behaviour#get-ids) | | Report log issue | Sends a log that looks wrong, with your description of the problem, to Quark's developers. See [Report log issue](/commands/behaviour#report-log-issue) | | Show edits | The same answer as the Show Edits button, for an edit log that has no button. See [Show Edits](/commands/behaviour#show-edits) | By default, Get IDs and Show edits are shown to members with **Manage Messages**, and Report log issue to members with both **Manage Channels** and **Manage Server**. You can change that in **Server Settings → Integrations → Quark**. ### Links * **Jump to context** on a deleted message takes you to the message it was replying to, or to the message just before it in the channel. * **Jump to message** on edit and reaction logs takes you to the message itself. ### Warnings A deleted-message log flags two things: an **invite link** in the message, and a **ghost ping**, which is a mention deleted within 10 seconds of being sent. Permission logs flag dangerous permissions. ## Where logs go There are twelve destinations: one **main** channel, nine **category** channels and two **special categories**. | Destination | What goes there | | - | - | | Main | Everything that does not have a channel of its own | | Modlogs | Bans, unbans, kicks, timeouts | | Members | Joins, leaves, nicknames, roles given and taken | | Messages | Deleted and edited messages, messages AutoMod blocked, reactions, threads | | Voice | Voice and stage activity | | Actions | Invites, emojis, stickers, soundboard, events, AutoMod rules | | Server | Server settings, icon, banner and boosts | | Roles | Role changes | | Channels | Channel, permission and webhook changes | | Quark Events | Changes to Quark's settings in your server, and what your [automations](/dashboard/automations) do | | Files (special) | Deleted attachments | | Age-restricted (special) | Message logs from age-restricted channels | Each category is in one of three states: * **Follows the main channel**. This is the default. * **Has its own channel**. * **Switched off**. Nothing in that category is logged. The two special categories are not categories of log types. Each takes certain message logs out of Messages. With no channel of its own, a special category goes wherever Messages goes, and it cannot be switched off. Quark picks the channel for a log in this order: 1. The Age-restricted channel, if you set one and the log is one it takes. See [age-restricted channels](#age-restricted-channels). 2. The log type's own channel, if you set one. This needs Quark Pro or Pro Lite. See [customization](/logs/customization). 3. Its category's channel. 4. The main channel. Setting the main channel, setting category and special category channels and switching categories off are free on every plan. ### Files **Files** only carries deleted attachments. If you set a Files channel, the attachments of each deleted message are posted there together as an "Attachment Deleted" log. If you do not, the files are attached to the Message Deleted log, wherever your Messages logs go. Files can be given a channel on the dashboard, but it cannot be switched off. ### Age-restricted channels A deleted or edited message is logged with what it said and its files. Set an **Age-restricted** channel to keep that content from your age-restricted channels out of your other log channels. | | How it works | | - | - | | Logs it takes | Deleted messages with their files, deleted polls, bulk deletes, edited messages and removed reactions, when the message was in an age-restricted channel | | Logs it does not take | Everything else about an age-restricted channel, such as a change to its permissions. Those go where they always did | | Channels you can choose | Only channels that are age-restricted themselves. Mark a channel as age-restricted in Discord first | | Threads | A thread counts as age-restricted when its parent channel is | | When it is not set | Nothing changes. These logs go wherever your Messages logs go | * It comes before a log type's own channel and before the Files channel. Deleted files from an age-restricted channel go to the Age-restricted channel. * It does not switch anything back on. If Messages, or one of these log types, is switched off, those logs stay off. * If the channel you chose later stops being age-restricted in Discord, the logs keep going there and the dashboard says so on the row. * It can only be set on the dashboard or through the [API](/api-reference/introduction), not with `/logging`. ### Set your channels > [tab] On the dashboard > > Go to **Logging → Channels**. Set the main logging channel at the top. Each category below it has a switch and a channel dropdown. **Files** and **Age-restricted** are in the **Special categories** section under the categories. > [tab] In Discord > > Run `/logging`. The reply shows where each category currently goes. > > * Pick a channel under **Set logging channel** to set the main channel. > * Pick a category under **Select a category** to give it its own channel, switch it off, or go back to the main channel. A few names differ from the dashboard: Quark Events is **Quark Config**, and Actions is **Server Actions**. > * Inside a category, pick a single log type to switch it on or off. Log channels can be text channels, announcement channels or threads. After you choose a channel, Quark posts a confirmation in it. If you do not see one, see [troubleshooting](/troubleshooting). # Search Source: https://docs.quark.bot/logs/search Find an older log There are two ways to find a log: the log viewer on the web, and Discord's own search in your log channel. ## On the web The [log viewer](/logs/viewer) filters by member, channel, log type, role, time and text, and can answer questions such as "messages deleted by @someone this week". It covers the last hour on the free plan and Pro Lite, and 30 days on Quark Pro. For anything older, use Discord's search. ## In Discord Your log channel keeps every log for as long as the messages are there, so Discord's [search](https://support.discord.com/hc/en-us/articles/115000468588-Using-Search) reaches back as far as your logs do. ### Find logs about a member Most logs about a member have their user ID in the footer, after `ID:`. To find them: 1. Open your log channel and click Discord's search box. 2. Choose the `in:` filter and pick your log channel. 3. Type the member's ID and press Enter. The search ends up looking like this: ``` in: #quark-logs 301655085954367490 ``` A few logs do not carry the member's ID in the footer: bundled logs (Multiple Voice Channel Events, Multiple Reactions Removed, Multiple Thread Member Events), and deletions of messages Quark no longer had stored, which show the message ID. On a modlog the ID is the member who was banned, kicked or timed out, not the moderator. To get a member's ID: * Press **User ID** on any log about them. Quark replies with the ID, only to you. * Or right-click a log that mentions them and choose **Apps → Get IDs**. Quark lists every ID in the log, the moderator's included. See [Get IDs](/commands/behaviour#get-ids). * Or turn on Developer Mode in Discord and right-click the member. See [Discord's guide](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID). ### Find a kind of log Add the title of the log to your search. For example, to find deleted messages from one member: ``` in: #quark-logs 301655085954367490 Message Deleted ``` The title is the heading at the top of the log. The [types table](/logs/types) lists the title of every log type. Discord decides what its search matches inside embeds, so results can vary. A log drawn as a [picture](/dashboard/formats#components-and-pictures) has only its line of text for Discord to match. If a search misses a log you know is there, use the log viewer or scroll the channel by date. Giving each category its own channel also narrows a search. See [where logs go](/logs/overview#where-logs-go). > [!NOTE] > > Older logs end their footer with a second number after the ID. That was the log type ID. New logs no longer include it, so searching by that number only finds older logs. # Types Source: https://docs.quark.bot/logs/types Every log type Quark can send, with its ID and category Every log type is available on every plan, and each one can be switched on or off individually on the dashboard under **Logging → Individual Log Config**. ## Reading the table * **ID** is the number the [API](/api-reference/introduction) and the log viewer's filters use for the log type. * **Name on the dashboard** is what the dashboard and the [log viewer](/logs/viewer) call it. **Title in Discord** is the heading on the log message itself. The two often differ, for example "Member Join" and "User Joined". Channel logs put the kind of channel first, as in "Text Channel Created". * **Category** decides which channel the log goes to. See [how logs are routed](/logs/overview#where-logs-go). * **Needs View Audit Log** means the log is built from Discord's audit log. Without the **View Audit Log** permission it is never sent. See [permissions](/permissions#view-audit-log). * **Always logged for bots** means the log is sent even when a bot did it or it happened to a bot. Other types follow the [bot rules](/logs/behaviour#actions-by-bots). ## All log types Quark has **118 log types** in 9 categories. | ID | Name on the dashboard | Title in Discord | Category | Needs View Audit Log | Notes | | -: | - | - | - | :-: | - | | 1 | Member Join | User Joined | Members | | Always logged for bots. Says "joined without an invite" when Quark is an Administrator and found no invite that was used | | 2 | Member Leave | User Left | Members | | Always logged for bots | | 25 | Nickname Update | Nickname Updated | Members | Yes | | | 26 | Server Avatar Changed | Server Avatar Changed | Members | | | | 44 | Role Given | Role Given | Members | Yes | | | 45 | Role Taken | Role Taken | Members | Yes | | | 46 | Members Pruned | Members Pruned | Members | Yes | | | 57 | Bot Added | Bot Added | Members | Yes | Always logged for bots | | 58 | Bot Removed | Bot Removed | Members | | Always logged for bots | | 0 | Delete Attachment | Attachment Deleted | Messages | | Sent to the Files channel. A separate log when a Files channel is set, or when an attachment is removed by editing a message | | 3 | Delete Multiple Messages | Multiple Messages Deleted | Messages | Yes | Always logged for bots. Attaches a text file of the deleted messages | | 4 | Delete Thread Message | Message Deleted | Messages | | | | 5 | Delete Single Message | Message Deleted | Messages | | | | 6 | Edit Thread Message | Message Edited | Messages | | | | 7 | Edit Message | Message Edited | Messages | | Also an edit to a bot's embeds, with what changed in them. One embed-only edit per message every five minutes | | 10 | Thread Create | Thread Created | Messages | | | | 11 | Thread Delete | Thread Deleted | Messages | Yes | | | 34 | Message Pinned | Message Pinned | Messages | | Sent without who did it when the audit log does not say, for example without View Audit Log | | 35 | Message Unpinned | Message Unpinned | Messages | | Sent without who did it when the audit log does not say, for example without View Audit Log | | 51 | Reaction Removed | Reaction Removed | Messages | | | | 86 | Poll Deleted | Poll Deleted | Messages | | | | 87 | Thread Updated | Thread Modified | Messages | Yes | A thread's name, slowmode, auto-archive duration, tags, pin and whether members can invite. Closing, reopening, locking and unlocking have their own log types | | 100 | Multiple Reactions Removed | Multiple Reactions Removed | Messages | | Several reaction removals close together, sent as one log | | 102 | Auto Moderation Message Blocked | AutoMod Blocked a Message | Messages | Yes | Names the AutoMod rule. Does not show what the blocked message said | | 103 | Thread Member Joined | Thread Member Joined | Messages | | | | 104 | Thread Member Left | Thread Member Left | Messages | | | | 105 | Multiple Thread Member Events | Multiple Thread Member Events | Messages | | Several thread joins and leaves at the same moment, sent as one log | | 108 | Reactions Cleared | Reactions Cleared | Messages | | Lists the reactions Quark had a record of | | 109 | Thread Closed | Thread Closed | Messages | Yes | Not sent when Discord closes a thread for inactivity. A "Close and lock" sends this and Thread Locked | | 110 | Thread Reopened | Thread Reopened | Messages | Yes | | | 111 | Thread Locked | Thread Locked | Messages | Yes | A "Close and lock" sends Thread Closed and this | | 112 | Thread Unlocked | Thread Unlocked | Messages | Yes | | | 8 | Stream Start | Stream Started | Voice | | | | 9 | Stream End | Stream Ended | Voice | | | | 12 | Video Start | Video Started | Voice | | | | 13 | Video Stop | Video Stopped | Voice | | | | 14 | Moved | Moved | Voice | Yes | | | 15 | Voice Channel Change | Changed Channel | Voice | | | | 16 | Server Deafen | Deafened | Voice | | Moderator shown on Quark Pro | | 17 | Voice Channel Join | Joined Channel | Voice | | | | 18 | Voice Channel Leave | Left Channel | Voice | | | | 19 | Server Mute | Muted | Voice | | Moderator shown on Quark Pro | | 20 | Server Undeafen | Undeafened | Voice | | Moderator shown on Quark Pro | | 21 | Server Unmute | Unmuted | Voice | | Moderator shown on Quark Pro | | 22 | Disconnected | Disconnected | Voice | Yes | | | 54 | Voice Channel Status Updated | Voice Channel Status Updated | Voice | Yes | | | 59 | Stage Started | Stage Started | Voice | Yes | | | 60 | Stage Ended | Stage Ended | Voice | Yes | | | 61 | Stage Updated | Stage Updated | Voice | Yes | | | 62 | New Stage Speaker | New Stage Speaker | Voice | | | | 63 | Speaker Invited | Speaker Invited | Voice | | | | 64 | Stopped Speaking | Stopped Speaking | Voice | | | | 88 | Multiple Voice Channel Events | Multiple Voice Channel Events | Voice | | Several voice events close together, sent as one log | | 23 | Invite Create | Invite Created | Actions | | | | 24 | Invite Delete | Invite Deleted | Actions | Yes | | | 36 | Emoji Create | Emoji Created | Actions | Yes | | | 37 | Emoji Delete | Emoji Deleted | Actions | Yes | | | 38 | Emoji Update | Emoji Edited | Actions | Yes | | | 65 | Event Created | Event Created | Actions | Yes | | | 66 | Event Deleted | Event Deleted | Actions | Yes | | | 67 | Event Updated | Event Updated | Actions | Yes | | | 90 | Sticker Created | Sticker Created | Actions | Yes | | | 91 | Sticker Deleted | Sticker Deleted | Actions | Yes | | | 92 | Sticker Updated | Sticker Edited | Actions | Yes | | | 93 | Soundboard Sound Added | Soundboard Sound Added | Actions | | Without View Audit Log, sent without who did it | | 94 | Soundboard Sound Deleted | Soundboard Sound Deleted | Actions | | Without View Audit Log, sent without who did it | | 95 | Soundboard Sound Updated | Soundboard Sound Updated | Actions | | Without View Audit Log, sent without who did it | | 96 | Auto Moderation Rule Created | Auto Moderation Rule Created | Actions | | Without View Audit Log, sent without who did it | | 97 | Auto Moderation Rule Deleted | Auto Moderation Rule Deleted | Actions | | Without View Audit Log, sent without who did it | | 98 | Auto Moderation Rule Updated | Auto Moderation Rule Updated | Actions | | Without View Audit Log, sent without who did it | | 27 | Channel Create | Channel Created | Channels | Yes | | | 28 | Channel Delete | Channel Deleted | Channels | Yes | | | 29 | Channel Update | Channel Modified | Channels | Yes | Includes a forum or media channel's guidelines, tags, default reaction, post slowmode, sort order, layout, require-a-tag and hide-after-inactivity settings | | 47 | Channel Permissions Added | Channel Permissions Added | Channels | Yes | | | 48 | Channel Permissions Deleted | Channel Permissions Removed | Channels | Yes | | | 49 | Channel Permissions Updated | Channel Permissions Updated | Channels | Yes | | | 79 | Webhook Created | Webhook Created | Channels | Yes | | | 80 | Webhook Deleted | Webhook Deleted | Channels | Yes | | | 81 | Webhook Modified | Webhook Modified | Channels | Yes | | | 82 | Webhook Avatar Updated | Webhook Avatar Updated | Channels | Yes | | | 83 | Channel Followed | Channel Followed | Channels | Yes | | | 84 | Channel Unfollowed | Channel Unfollowed | Channels | Yes | | | 85 | Followed Channel Updated | Followed Channel Updated | Channels | Yes | | | 106 | Channels Reordered | Channels Reordered | Channels | | Only for moves with no audit log entry of their own. A move that has one is logged as Channel Update | | 30 | Server Modified | Server Modified | Server | Yes | | | 52 | Server Icon Update | Server Icon Updated | Server | Yes | | | 55 | Server Boosted | Server Boosted | Server | | Says "Someone" when Discord does not say who boosted | | 56 | Server Boost Removed | Server Boost Removed | Server | | Says "Someone" when Discord does not say who stopped boosting | | 107 | Server Banner Update | Server Banner Updated | Server | Yes | | | 31 | Role Create | Role Created | Roles | Yes | | | 32 | Role Delete | Role Deleted | Roles | Yes | | | 33 | Role Update | Role Modified | Roles | Yes | Shows gradient and holographic colours | | 50 | Role Permissions Updated | Role Permissions Updated | Roles | Yes | | | 53 | Role Icon Update | Role Icon Updated | Roles | Yes | | | 68 | Logging Channel Changed | Logging Channel Changed | Quark Events | | | | 69 | Ignore Options Updated | Ignore Options Updated | Quark Events | | Also records Active Ignore requests. Those are logged even when this type is switched off | | 70 | Language Changed | Language Changed | Quark Events | | | | 71 | Token Revoked | Token Revoked | Quark Events | | | | 72 | Token Generated | Token Generated | Quark Events | | | | 73 | Tag Deleted | Tag Deleted | Quark Events | | | | 74 | Tag Added | Tag Added | Quark Events | | | | 75 | Tag Updated | Tag Updated | Quark Events | | | | 76 | Logging Options Updated | Logging Options Updated | Quark Events | | | | 77 | Log Updated | Log Updated | Quark Events | | | | 78 | Configuration Reset | Configuration Reset | Quark Events | | | | 89 | Server Subscription Update | Server Upgraded / Server Plan Changed / Server Downgraded | Quark Events | | Server Plan Changed when a server moves between Pro Lite and Pro. Says who gave the plan, or whose plan it is | | 99 | Dashboard Access Changed | Dashboard Access Changed | Quark Events | | | | 101 | Rule Action | Rule Action | Quark Events | | What an automation rule did, and what an action button on a log or a tag did when it was pressed. A rule's moderation actions are logged even when this type is switched off | | 117 | Automation Created | Automation Created | Quark Events | | What sets it off and what it does. Before October 2026 this was a line in Logging Options Updated | | 118 | Automation Updated | Automation Updated | Quark Events | | Only what changed: name, on or off, dry run, what sets it off, conditions, actions | | 119 | Automation Deleted | Automation Deleted | Quark Events | | What it was set off by and what it did | | 39 | Ban | Ban | Modlogs | Yes | Always logged for bots | | 40 | Timeout | Timeout | Modlogs | Yes | Always logged for bots | | 41 | Kick | Kick | Modlogs | Yes | Always logged for bots | | 42 | Timeout Removed | Timeout Removed | Modlogs | Yes | Always logged for bots | | 43 | Unban | Unban | Modlogs | Yes | Always logged for bots | | 120 | Warn | Warn | Modlogs | | Always logged for bots | | 121 | Warn Removed | Warn Removed | Modlogs | | Always logged for bots | > [!NOTE] > > Older logs end their footer with the log type ID after the user ID. Newer logs show only `ID:` followed by the ID. # Log viewer Source: https://docs.quark.bot/logs/viewer Read, filter and search your logs on the web The log viewer shows your server's logs in the browser, as they happen. Open it from **Log Viewer** in the dashboard sidebar. Every log Quark sends to Discord also appears here, on every plan. A log is recorded before it is delivered, so if Discord rejected a log, the viewer still has it. If a log channel is deleted, logs already recorded stay in the viewer, but new ones are not recorded until a channel is set again. A log that an [automation](/dashboard/automations) rule held back is not posted to Discord, but it is in the viewer, marked **Held back by rule** with the rule's name. Notices that rules added to a log are listed in its details. A press of an [action button](/dashboard/formats#when-a-button-is-pressed) is listed as who pressed which button about which member. ## Who can use it Anyone who can open the server's dashboard, plus anyone who has been given **View logs** under [dashboard access](/dashboard/access). ## What each entry shows Each entry is one line saying what happened. A kick or ban reads as one: "jet was banned by mara.k". When a moderator acted through another bot, the line adds which one: "jet was banned by mara.k using Sapphire". See [bot integrations](/logs/integrations). Click an entry to see its details: who did it, who it was done to, the channel, the reason, and the message content. Edits show the text before and after. Bulk deletes list the messages. * Attachments are listed by **name and size**. The viewer does not show the files themselves. * Images from embeds are shown, loaded from Discord's media servers and not from the site that originally hosted them. * **Delivery status** says whether the log reached your Discord channel, and if not, why. **Not yet confirmed** means Quark has no record of the delivery yet, as on a log that has just arrived in the live list. * A deleted forward shows what it carried and where it was forwarded from. A deleted answer to a command shows who ran the command. From an entry you can copy a link to it, filter to the member involved, or open the channel in Discord. On Quark Pro you can open the log message itself. ## Filters | Filter | Notes | | - | - | | Search | Matches message content by whole words, and names, channels, roles and reasons by part of a word | | Time range | Last hour, 24 hours, 7 days, 30 days, or a custom range | | Category | The nine log categories, with a count for each | | Log type | One or more individual log types | | Channel | A single channel | | Member | A member, as **Anyone**, **Did it** or **Affected** | | Role | One of the server's current roles. To find a role that has been deleted, type its name in Search | Your filters are part of the page address, so you can send a filtered view to another moderator as a link. ## Ask in plain words Type a question in the box above the list and Quark turns it into filters. For example: * messages deleted by @someone this week * who was banned yesterday * role given to @someone * anything in #general today * kicks in the past 3 days If Quark cannot work out what you mean, it searches for your words as plain text and says so. Your question is handled on Quark's own servers and is not sent to any outside AI service. ## Live New logs appear as they happen, in order of when each one happened. A log that took a few seconds to arrive, because it waited for the audit log, is placed by its time and not at the very top. Click **Live** to pause. If you have scrolled down, a bar tells you how many new entries have arrived and takes you back to the top. ## Export **Export CSV** downloads exactly the entries your current filters match, up to 50,000 rows. Export needs Quark Pro. ## What each plan gets | | Free | Pro Lite | Quark Pro | Quark Enterprise | | - | - | - | - | - | | Live feed | Yes | Yes | Yes | Yes | | History | 30 days | 30 days | 1 year | 5 years | | Filters, search and questions | Across 30 days | Across 30 days | Across 1 year | Across 5 years | | Export CSV | No | No | Yes | Yes | Whatever your plan, logs keep being posted to your Discord channels as normal. The plan only changes how far back you can look on the web. # Auto-mod Source: https://docs.quark.bot/moderation/automod Ready-made protections against spam, scams and raids Auto-mod is a set of ready-made protections. Switch one on and Quark acts the moment it sees a match. Every protection is free on every plan. Auto-mod is on the dashboard under **Moderation → Auto-mod**, and in Discord with `/setup` → **Auto-mod**. A server that has never saved Auto-mod runs none of it: press **Turn on recommended** to start with the protections marked **Most used**. ## Protections | Group | Protection | What it catches | | - | - | - | | Messages | Scam links | Links to fake Nitro, fake Steam and other account-stealing sites | | | Same message in many channels | One message posted in several channels at once, as compromised accounts do | | | Invite links | Invites to other Discord servers | | | Message floods | Too many messages too quickly | | | Repeated messages | The same message sent over and over | | | Mass mentions | Too many people or roles mentioned in one message | | | Blocked words | Swear words and slurs from Quark's list, and any words you add, disguised spellings included | | | Walls of text and emoji | Very long messages, or messages that are mostly emoji | | | Shouting and odd characters | Messages mostly in capitals, or full of invisible or combining characters | | Images and files | Known scam images | Images on Quark's list of known scams, like fake giveaways and QR-code logins | | | Your blocked images and files | Anything your moderators blocked with **Apps → Block image or file** | | | Program files | Files that run a program when opened, like `.exe`, `.scr` and `.bat` | | Joins | Join raids | Many members joining in a short time | | | Brand-new accounts | Accounts made shortly before they join | | | Blocked words in a name | Swear words and slurs in the name of someone joining or changing their nickname | | Server safety | Mass deletes | Someone deleting many channels or roles in a short time | Press **Edit** on a protection to choose **What Quark does**: tell moderators, delete the message (or every copy), warn, time out, slow down or lock the main chat, give a Quarantine role, or reset a nickname, depending on the protection. A step that can't run yet says why, for example "Choose a channel first". ## Shared settings * **Tell moderators in**: the channel for Auto-mod's alerts. * **Never act on**: roles Auto-mod leaves alone. * **Quarantine role**: used by Brand-new accounts and Blocked words in a name. * **Repeat offenders**: someone caught several times in an hour is timed out, kicked or banned and warned. Message and media protections can also skip chosen channels. ## Fine-tuning Each protection is made of [automation](/dashboard/automations) rules. They are listed on the Automations page under **From Auto-mod**, locked. Press **Copy to edit** to make your own copy: it starts switched off, so nothing runs twice, and it counts towards your plan's automations. The panel beside the protections shows the last 7 days of catches. People who can view logs also see the most recent catches, with a link to Cases. # Moderation Source: https://docs.quark.bot/moderation/overview Warns, cases, member profiles, appeals and the review queue Quark keeps a record of every moderation action in your server, whether it was taken with Quark, with Discord, or with another bot. Each action is a **case** with a number, a reason and the moderator who took it. The record does not depend on logging: cases are kept even if you have no log channel set up. Moderation is on the dashboard under **Moderation** in the sidebar. Its tabs are **Cases**, **Appeals**, **Health report**, **Review**, **Auto-mod**, **Team**, **Moderators**, **Delivery** and **Settings**. To set up the basics from Discord, use `/setup` and choose **Moderation**. ## Commands | Command | What it does | | - | - | | `/warn` | Warn a member and run the server's warn steps. Choose the reason, whether they get a DM, and how long the warn counts | | `/profile` | See a member's warns, cases and appeals | | `/mod-report` | See how moderation is going in the server over the last 7 or 30 days | | `/shift start`, `/shift end`, `/shift status` | Clock in and out of moderation shifts (Quark Enterprise) | In the **Apps** menu, **Moderation profile** on a member shows their profile, and **Save as evidence** (Quark Pro) and **Send to review** work on a message. Every command is in the [command list](/commands/list). ## Warns and warn steps A warn can count towards **warn steps** you set in **Moderation → Settings**: for example, a timeout at 3 warns and a ban at 5. A warn stops counting once it expires. ## Cases **Moderation → Cases** lists every case, including ones that never had a log. Open a case to see its reason and the history of changes to it, the evidence saved with it, and any appeal. Reasons can be edited and locked from the dashboard. When a case is made without a reason, Quark can ask the moderator for one. ### Evidence With Quark Pro, logs about the member can be saved with a case as evidence: the hour, day or week before the case, or individual logs. Saved logs are kept as long as the case. A case's evidence can be downloaded as a PDF. ## Appeals Members can appeal a case. **Moderation → Appeals** is a queue of open appeals where you accept or deny each one. With Quark Pro you can add up to 10 questions of your own to the appeal form. Answering appeals is up to your server's moderators. ## Review queue With Quark Pro, a moderator can send a message to **Review** instead of acting straight away. Someone with permission to moderate then chooses what happens to it: nothing, delete, warn, timeout or ban. ## Health report **Moderation → Health report** shows how moderation is going, with cases by action and by moderator, appeals, and suggested fixes you can apply. It can be downloaded as a PDF, and `/mod-report` shows the same in Discord. ## Team shifts (Quark Enterprise) Moderators clock in with `/shift start` and out with `/shift end`. Quark only counts time someone has clocked in for; it never guesses from whether they are online. **Moderation → Team** shows hours, actions per shift, coverage across the week and response times, and can be exported as a CSV or PDF. A shared link to a shift report can be sent to someone without dashboard access. ## What each plan gets | | Free | Quark Pro | Quark Enterprise | | - | - | - | - | | Warns, member profiles and appeals | Yes | Yes | Yes | | Health report | Yes | Yes | Yes | | Edit and lock reasons on the web | Yes | Yes | Yes | | Cases and moderation history | 30 days | Kept for all time | Kept for all time | | Modlog reason history | Latest change | Last 10 changes | Last 10 changes | | Warn steps | Up to 3 | Up to 10 | Up to 10 | | Custom appeal questions | No | Up to 10 | Up to 10 | | Your own messages to members | No | Yes | Yes | | Review queue | No | Yes | Yes | | Save logs as evidence | No | Yes | Yes | | Missing reasons | No | Ask the moderator | Ask, or require one | | Moderators page | No | No | Yes | | Team shifts | No | No | Yes | | Weekly summary and appeal targets | No | No | Yes | # Overview Source: https://docs.quark.bot/overview What Quark does ## Logs for everything that happens Quark has [116 log types](/logs/types) in nine categories: | Category | What it covers | | - | - | | Messages | Deleted and edited messages, messages AutoMod blocked, bulk deletes, deleted polls, removed and cleared reactions, threads and who joins and leaves them | | Members | Joins and leaves, nicknames, roles given and taken, server avatars, bots added and removed | | Voice | Joins, leaves and moves, streams and video, server mutes and deafens, stages | | Modlogs | Bans, unbans, kicks, timeouts and timeouts removed | | Channels | Channels created, deleted, changed and reordered, permission changes, webhooks, followed channels | | Roles | Roles created, deleted and changed, permission changes | | Server | Server settings, icon, banner, boosts | | Actions | Invites, emojis, stickers, soundboard sounds, events, AutoMod rules | | Quark Events | Changes to Quark's own settings in your server | ## Deleted files When a message with attachments is deleted, Quark posts the files back into your log channel along with the message, so images and other files are not lost with the message. ## A channel for each kind of log Send everything to one channel, or give each category its own. You can also switch a category off. With Quark Pro or Pro Lite you can give a single log type its own channel. See [where logs go](/logs/overview#where-logs-go). ## Ignore what you do not need Leave out particular channels, channel categories, members, roles, or messages with exact content you choose. Switch individual log types off. See [options](/logs/options). ## Rules that act on your logs Automations watch the logs Quark sends, and messages being sent and reactions being added, and do something extra when one matches: post an alert and ping a role, add a notice to the log, hold the log back, forward the message, or reply to or react to it. A rule can check the message against your own list of words or one of Quark's, such as swear words and scam links. On every plan a rule can also moderate: time out, kick, ban or unban a member, delete or pin a message, give or take a role, change a nickname, send a direct message, move, mute or disconnect someone in voice, and lock, rename or slow down a channel. See [automations](/dashboard/automations). ## Logs on the web The log viewer shows your server's logs live, with filters for member, channel, log type and text. You can type a question such as "messages deleted by @someone this week" and Quark turns it into filters. With Quark Pro you get 30 days of searchable history and CSV export. See [log viewer](/logs/viewer). ## Works with your other bots When a moderator acts through Wick, YAGPDB, Sapphire or ProBot, Quark's logs show the moderator who gave the command and say which bot was used. An optional PluralKit setting stops proxied messages from filling your logs. See [bot integrations](/logs/integrations). ## A troubleshooter that finds the problem `/troubleshoot` and the dashboard's troubleshooter check your configuration, Quark's permissions in each log channel and the delivery path, then tell you what is stopping logs and fix what they can in one click. See [troubleshooting](/troubleshooting). ## Share access without sharing permissions Give a role or a person the log viewer, or part of the dashboard, without giving them Manage Server in Discord. See [sharing access](/dashboard/access). ## Your language Quark's logs and commands are available in 19 languages, translated by the community. See [languages](/languages/overview). ## Longer history with Quark Pro | | Free | Quark Pro | | - | - | - | | Content of deleted and edited messages | Messages up to 12 hours old | Messages up to 30 days old | | Log history on the web | Last hour | 30 days, searchable | > [card] [Subscriptions](/subscriptions/overview) > > What each plan includes > [card] [Data](/data/behaviour) > > How long Quark keeps your server's data # Permissions Source: https://docs.quark.bot/permissions What Quark needs, and what stops working without each permission This page is about the permissions **Quark** needs. For the permissions a **member** needs to run a command, see the [command list](/commands/list). ## The short version > [!TIP] > > Giving Quark **Administrator** avoids every problem on this page, and new log types work as soon as they are released. The invite link asks for it by default. If you do not want to grant Administrator, Quark needs at least: 1. **View Audit Log** on its role, server-wide. 2. **View Channel**, **Manage Webhooks** and **Embed Links** in every log channel. 3. **View Channel** in every channel you want logged. The rest of this page lists what each permission is for, so you can decide what to leave out. To check your server, run `/troubleshoot`. It reports every permission Quark is missing in each log channel and what that costs you. ## What the invite link asks for | Permission | Why | | - | - | | Administrator | Covers everything below, in every channel. A join log only says "joined without an invite" when Quark is an Administrator | | View Audit Log | Most moderation, role, channel and server logs are built from the audit log | | Manage Server | Shows which invite a new member used, and receives AutoMod rule changes | | Manage Webhooks | Logs are delivered through a webhook Quark creates in each log channel | | View Channels | Sees the channels it logs and the channels it posts in | | Send Messages, Send Messages in Threads | Posts logs when no webhook is available, and posts tags | | Embed Links | Standard logs are embeds | | Attach Files | Re-posts deleted files | | Read Message History | Reads the message a reaction log refers to, and reads messages for `/purge` | | Use External Emojis | Shows the icon in each log's title | | Kick Members, Ban Members, Timeout Members | For `/kick`, `/ban`, `/unban`, `/mute`, `/unmute`, the Ban button on join logs, and [automation](/dashboard/automations) rules and [action buttons](/dashboard/formats#action-buttons) that time out, kick, ban, unban or remove a timeout | | Manage Messages | For `/purge`, and automation rules and action buttons that delete a message, and rules that pin one | | Manage Roles | For automation rules and action buttons that give or take a role, and rules that lock or unlock a channel | Some permissions Quark can use are not in the invite link and only come with Administrator: * **Manage Channels**: invite logs, creating #quark-logs during setup, and automation rules that set a voice channel's status, slowmode, a channel's name or its topic. * **Manage Nicknames**, **Move Members**, **Mute Members** and **Deafen Members**: automation rules that change a nickname, or move, disconnect, mute or deafen someone in voice. If you remove Administrator, add the ones you need to Quark's role yourself. The invite link has not always asked for Manage Messages and Manage Roles. A server keeps the permissions it gave Quark when it was added, so if Quark does not have Administrator in your server, grant those two to its role when you need them. ## In each log channel Quark needs these in every channel it sends logs to. If logs are lost because View Channel, Manage Webhooks, Embed Links or Send Messages is missing, Quark tells you. See [when Quark tells you it can't post logs](/troubleshooting#when-quark-tells-you-it-cant-post-logs). Quark never changes its own permissions. | Permission | Without it | | - | - | | View Channel | Nothing can be delivered to the channel | | Manage Webhooks | Quark cannot create or reuse its webhook. Logs only arrive if Quark can post them itself, which needs Send Messages | | Embed Links | Discord accepts the log and shows an empty message | | Send Messages | Logs still arrive through the webhook, but stop if the webhook is lost or was never created | | Attach Files | Deleted files and bulk-delete files cannot be posted, and images cannot be added to a modlog that Quark posted itself and not through its webhook. Other logs are unaffected | | Use External Emojis | Log titles show raw emoji names instead of icons | | Read Message History | Edit Reason cannot open the modlog it is editing | ## Server-wide ### View Audit Log Discord only tells a bot who did something through the audit log. Without **View Audit Log** these log types are never sent: * **Modlogs**: Ban, Unban, Kick, Timeout, Timeout Removed * **Roles**: Role Create, Delete and Update, Role Permissions Updated, Role Icon Update * **Channels**: Channel Create, Delete and Update, the three Channel Permissions logs, all webhook logs, Channel Followed, Unfollowed and Followed Channel Updated * **Server and members**: Server Modified, Server Icon Update, Server Banner Update, Nickname Update, Role Given, Role Taken, Members Pruned, Bot Added * **Actions**: Invite Delete, and the emoji, sticker and event logs * **Voice**: Moved, Disconnected, Voice Channel Status Updated, Stage Started, Ended and Updated * **Messages**: Delete Multiple Messages, Thread Delete, Thread Updated, Thread Closed, Reopened, Locked and Unlocked, Auto Moderation Message Blocked The [log types table](/logs/types) marks each of these. Other logs are still sent, but lose detail: | Log | Without View Audit Log | | - | - | | Message deleted | No "Deleted by" | | Moved, Disconnected | Shown as an ordinary Voice Channel Change or Voice Channel Leave | | Server Mute, Deafen, Unmute, Undeafen | No moderator. Showing the moderator also needs Quark Pro | | Bot Removed | No record of who removed the bot | | Message Pinned, Message Unpinned | No record of who pinned or unpinned the message, and only sent for a message Quark had stored | | Soundboard and AutoMod rule logs | No record of who made the change | > [!WARNING] > > If Quark cannot tell who did something, the ignore rules for who did it cannot apply to that log. ### Other server-wide permissions | Permission | Needed for | | - | - | | Manage Server | Showing which invite a new member used, and receiving AutoMod rule logs | | Manage Channels | Invite Create logs. Discord only sends invite events to bots with Manage Channels in that channel | | Manage Webhooks | Webhook Modified, Webhook Avatar Updated, Channel Followed and Followed Channel Updated | | Read Message History | Reaction Removed logs | ## In the channels you want logged Quark needs **View Channel** in a channel to log the messages in it. To keep a private channel out of your logs, remove View Channel for Quark in that channel, or add the channel to the [ignore rules](/logs/options#ignore-rules). ## For commands Quark's own permissions for each command. The member running the command needs their own permissions too. See the [command list](/commands/list). | Command | Quark needs | | - | - | | `/ban`, `/unban`, the Ban button on join logs | Ban Members. For `/ban`, Quark's highest role must also be above the member's highest role | | `/kick` | Kick Members, and a role above the member's highest role | | `/mute`, `/unmute` | Timeout Members. Members with Administrator and the server owner cannot be timed out | | `/purge` | View Channel, Read Message History and Manage Messages. The member needs Manage Messages in that channel too | | `/tags send` | Send Messages and Embed Links in the channel | | Edit Reason on a modlog | View Channel and Read Message History in the modlog channel. To add images to a modlog that Quark posted itself and not through its webhook, Attach Files there too | | Everything else | Nothing extra | ## For automations Quark's own permissions for each action an [automation](/dashboard/automations) rule can take. The person saving the rule needs their own too, and has to keep them for the rule to go on acting. See [who a rule acts for](/dashboard/automations#who-a-rule-acts-for). | Action | Quark needs | | - | - | | Tell a channel | View Channel and Send Messages in that channel | | Forward the message | View Channel and Send Messages in the channel it is forwarded to | | Add a notice to the log, Don't send this log | Nothing extra | | Time someone out | Timeout Members | | Kick someone | Kick Members | | Ban someone | Ban Members | | Reply to the message | Read Message History and Send Messages in the message's channel | | React to the message | Read Message History and Add Reactions in the message's channel | | Delete the message | Manage Messages in the message's channel | | Pin or unpin the message | Manage Messages or Pin Messages in the message's channel | | Remove a timeout | Timeout Members | | Unban someone | Ban Members | | Give or take a role | Manage Roles, and a highest role above the role it gives or takes | | Change someone's nickname | Manage Nicknames | | Send someone a DM | Nothing extra | | Move someone to another voice channel | Move Members, and Connect in the channel they are moved to | | Disconnect someone from voice | Move Members | | Mute or unmute, deafen or undeafen someone | Mute Members, Deafen Members | | Set a voice channel's status, Set slowmode, Rename a channel, Set a channel's topic | Manage Channels in that channel. In a thread, Manage Threads covers slowmode and a new name | | Lock or unlock a channel | Manage Roles in that channel | For a timeout, kick, ban, removed timeout, role change, nickname change or message delete, Quark's highest role must also be above the highest role of the member, or of the message's author. The server owner cannot be acted on. If Quark is missing a permission, that step of the rule is skipped. The rule's row on the dashboard says why, and Quark posts a **Rule Action** log about it, at most once an hour for each reason. The same happens when the person who last changed the rule has lost theirs. # Quickstart Source: https://docs.quark.bot/quickstart Add Quark and get your first log in a few minutes Quark logs nothing until you tell it which channel to post in. Setup is three steps: add the bot, choose a channel, check a log arrives. ## Before you start You need the **Manage Server** permission in the server to add a bot. To run `/logging` you need **Manage Channels** and **Manage Server**. To open the dashboard you need any one of Administrator, Manage Server, Manage Channels or Manage Webhooks. ## Set up Quark **1. Add Quark to your server** Open the [invite link](https://quark.bot/api/invite?source=docs), pick your server and approve the permissions. Discord shows the list of permissions Quark asks for, with **Administrator** ticked. Administrator is the simplest choice, because nothing can then be blocked by a channel permission. If you would rather not grant it, untick it and read [permissions](/permissions) for what Quark needs instead. **2. Choose where logs go** After you approve, Quark opens a setup page for your server. Pick one: * **Create #quark-logs and log everything there**. Quark makes one private channel that only your admins can see and sends every log to it. This needs Administrator or Manage Channels. If you unticked Administrator, use a channel you already have. * **Use a channel you already have**. Choose a text channel from the list and press **Use this**. If you added Quark some other way (from Top.gg or Discord's app directory, for example), you will not see that page. Do one of these instead: * In Discord, run `/logging` and pick a channel from **Set logging channel**. * On the [dashboard](https://quark.bot/dashboard), open your server, go to **Logging → Channels** and set the main logging channel. Either way, this sets your **main log channel**. Every log goes there until you [split them up](/logs/overview#where-logs-go). **3. Check that a log arrives** Quark posts a confirmation message in the channel you chose. Now send a message anywhere in the server and delete it. A **Message Deleted** log should appear in the log channel within a second or two. If nothing appears, run `/troubleshoot`. It checks your setup and tells you what is stopping logs. See [troubleshooting](/troubleshooting). > [!NOTE] > > Deleting your own message is a fine test, unless you have added yourself or one of your roles to the [ignore rules](/logs/options#ignore-rules). The troubleshooter tells you if you have. ## What to do next > [accordion] Send different logs to different channels > > On the dashboard, go to **Logging → Channels**. Each category (Modlogs, Members, Messages, Voice, Actions, Server, Roles, Channels, Quark Events) has a switch and a channel dropdown. Choose a channel to send that category somewhere else, or turn the switch off to stop logging it. Under them, the two special categories, Files and Age-restricted, can each have their own channel but cannot be switched off. > > You can do the same in Discord with `/logging`: pick a category from **Select a category**. A few names differ there (Quark Events is **Quark Config**, Actions is **Server Actions**), and Files and Age-restricted can only be set on the dashboard. > > See [where logs go](/logs/overview#where-logs-go). > [accordion] Stop logging certain channels, members or roles > > On the dashboard, go to **Logging → Ignore Rules** and add the channels, categories, members or roles you want left out. > > An **executor** is the person who did something. A **target** is the person or thing it was done to. Ignoring a member as an executor hides what they do. Ignoring them as a target hides what is done to them. > > See [options](/logs/options). > [accordion] Read your logs on the web > > Open **Log Viewer** in the dashboard sidebar. It shows your logs as they happen, with filters for member, channel, log type and text. > > See [log viewer](/logs/viewer). > [accordion] Give your moderators access > > Moderators without Manage Server can still be given the log viewer, or part of the dashboard. Go to **Settings → Dashboard Access**. > > See [sharing access](/dashboard/access). > [accordion] Make Quark work with your other bots > > Quark shows the real moderator on actions taken through Wick, YAGPDB, Sapphire and ProBot, and has an optional PluralKit setting. > > See [bot integrations](/logs/integrations). > [accordion] Keep message history for longer > > On the free plan Quark can show the content of a deleted or edited message if it was sent in the last 12 hours. Quark Pro extends that to 30 days and keeps 30 days of searchable log history on the web. > > See [subscriptions](/subscriptions/overview). # Comparison Source: https://docs.quark.bot/subscriptions/comparison What each plan includes, side by side | | Free | Quark Pro Lite | Quark Pro | | - | - | - | - | | **Logging** | | | | | All 116 log types | Yes | Yes | Yes | | Main channel and a channel per category | Yes | Yes | Yes | | Ignore rules | Yes | Yes | Yes | | Content of deleted and edited messages | Up to 12 hours old | Up to 12 hours old | Up to 30 days old | | Choose to log actions by and to bots | No | Yes | Yes | | Moderator shown on server mutes and deafens | No | No | Yes | | Lock modlog reasons, by hand or after a set time | Yes | Yes | Yes | | Images on a modlog, up to 4 | Yes | Yes | Yes | | History of changes to a modlog's reason and images | Latest change | Latest change | Last ten, with the reason before and after | | **Customization** | | | | | Custom colour per log type | No | Yes | Yes | | Quark's own log formats: Standard, Compact, Basic, Detailed, JSON and Components | Yes | Yes | Yes | | Logs drawn as pictures: Image cards, and the Image layout | No | No | Yes | | Build, share and add your own [log formats](/dashboard/formats) | Yes | Yes | Yes | | Post logs in a format you built | No | Yes | Yes | | Logs a format can change one by one | None | 10 | All | | Advanced format templates | No | No | Yes | | [Action buttons](/dashboard/formats#action-buttons) on logs | No | No | Yes | | A channel for a single log type | No | Yes | Yes | | Logs under your own [name and avatar](/logs/customization#name-and-avatar), for the server and each log channel | No | Yes | Yes | | **Automations** | | | | | Rules | 1 | 3 | 25 | | Alerts, notices, copies, forwards, replies, reactions and holding a log back | Yes | Yes | Yes | | Rules on a message being sent or a reaction being added | Yes | Yes | Yes | | [Lists of words](/dashboard/automations#lists-of-words), including Quark's lists of swear words, scam links, link shorteners, invite links and risky file types | Yes | Yes | Yes | | Changing a log's colour | No | Yes | Yes | | Moderation actions: timeouts, kicks, bans and unbans, messages, roles, nicknames, direct messages, voice and channels | Yes | Yes | Yes | | Advanced conditions | No | No | Yes | | Try a rule on your last 50 logs | No | No | Yes | | **Logs on the web** | | | | | Live log viewer | Yes | Yes | Yes | | History and search | Last hour | Last hour | 30 days | | Export logs as CSV | No | No | Yes | | **Server** | | | | | People or roles with dashboard access | 3 | 3 | 50 | | Tags | 25 | 25 | Unlimited | | Share tags and tag bundles with a link | Yes | Yes | Yes | | Share on, and add from, the [Marketplace](/dashboard/marketplace) | Yes | Yes | Yes | | Quark Pro bot | No | No | Yes | | **Plan** | | | | | Servers covered | | No longer sold | The server it was bought for | Quark Pro Lifetime, Quark Pro packs and gifted Quark Pro all give you Quark Pro. Plans bought before Pro was locked to a server keep the servers they covered. See [plans bought before this](/subscriptions/overview#plans-bought-before-this). Quark Pro Lite is no longer sold. See [Pro Lite](/subscriptions/overview#pro-lite). For prices, see the [pricing page](https://quark.bot/pricing). > [!NOTE] > > Voting for Quark on Top.gg unlocks Pro Lite on a server under 1,000 members for 24 hours per vote. See [voting](/subscriptions/voting). # Managing your plan Source: https://docs.quark.bot/subscriptions/manage Change plan, add or stop servers, cancel, and what happens when a plan ends ## Where things are | To do this | Go to | | - | - | | See your plan, the servers that have Pro, and what you pay | [Account → Billing](https://quark.bot/account?tab=billing) | | See what one server has and what it costs | The server's **Billing** tab on the dashboard | | Get Pro for another server | **Get Pro for another server** on [Account → Billing](https://quark.bot/account?tab=billing), or the server's **Billing** tab | | Stop paying for one server | The server's **Billing** tab. See [below](#stop-pro-on-one-server) | | Move a plan bought before Pro was locked to a server | [Account → Legacy plans](https://quark.bot/account?tab=legacy) | | Cancel | [Billing](https://quark.bot/subscriptions/billing). See [cancel](#cancel) | | Update your card, see invoices | [Billing](https://quark.bot/subscriptions/billing), which opens your Stripe customer portal | Lifetime, packs and redeemed gifts are paid once, so there is nothing to cancel. If you paid by card, billing still shows your invoices. ## Change plan On a monthly subscription, a server's **Billing** tab has **Switch to yearly · 2 months free**. It changes the whole plan to yearly. On the [pricing page](https://quark.bot/pricing), a subscriber sees **Change Period** on their plan, and a Pro Lite subscriber also sees **Upgrade to Pro**. The change takes effect immediately, and what you have already paid for the current period is taken into account. The page tells you what you will be charged before you confirm. When you cancel, the cancellation page may offer **Buy Lifetime**. Lifetime then covers the servers your plan covers, each priced by its size, and stays on them. Your subscription is set to end at the close of its paid period and is not charged again. Packs cannot run alongside a subscription. Cancel the subscription first and buy a pack once it ends. The cancellation page also offers a pack that starts when your paid period ends. ## Stop Pro on one server On a subscription that covers more than one server, you can stop paying for one of them: 1. Open the server's **Billing** tab on the dashboard. 2. Press **Stop Pro on this server**, then **Stop Pro here**. * Pro stays on the server until your next renewal. It is then removed, and the server moves to the free plan. * You are not charged for the server again. * Your other servers are re-priced at renewal, so the biggest one left is the full-price one. * Until the renewal, **Keep Pro on this server** undoes it. Only the person paying for the plan can do this. If it is your only server, the button is **Cancel Pro** instead. See [cancel](#cancel). ## Cancel Open [billing](https://quark.bot/subscriptions/billing) and press **Cancel**. Cancelling happens on the site, in three steps: 1. **Why are you cancelling?** You can skip this. Depending on the answer there is one short follow-up: what price would feel fair, which bot you are switching to, or what was missing. 2. **Offers.** A switch to Pro Lite, a pack that starts when your paid period ends, and Lifetime, ordered by your answer. If the price was the reason, a **save discount** is offered first. Take one and your subscription carries on, changed as the offer says. 3. **Cancel subscription.** Your subscription is set to end at the close of the current period and is not charged again. A confirmation screen says when it ends. If the site cannot complete the cancellation, you are sent to the Stripe portal to cancel there instead. You keep everything you have paid for until the end of the current period. Until then, opening billing again shows the offers rather than the cancel steps; taking the save discount keeps the subscription running. To undo a cancellation without an offer, use the Stripe portal. ### Save discount The save discount is **30% off**: the next yearly renewal on a yearly subscription, or the next three payments on a monthly one. It is offered once per customer, only on an active subscription, only when you said the price was the reason, and not on top of a discount you already have, such as a referral discount. ## Failed payments If a renewal payment fails, Quark sends you a DM with a link to retry or pay another way. If you pay yearly, the DM also offers to switch you to monthly instead. If the payment stays unpaid, the subscription is cancelled. ## Refunds See the [refund policy](https://quark.bot/legal/refunds). ## When a plan ends * Paid features switch off on the servers the plan covered. * **Your settings are kept.** Custom colours, formats and per-log channels stay saved but stop being applied. They apply again if the server gets a plan later. * Quark goes back to keeping message content for 12 hours, and the log viewer goes back to the last hour. * Tags above the free limit of 25 are not deleted, but you cannot add more. * [Automation](/dashboard/automations) rules are not deleted. Rules with an advanced condition, rules that change a log's colour on the free plan, and rules beyond the new plan's number, are parked until the server has the plan again. * The Quark Pro bot leaves the server. * When a plan is removed from a server, or ends, Quark posts a **Server Downgraded** log in its Quark Events channel. When a server moves between Pro Lite and Quark Pro, the log is **Server Plan Changed**, with the plan before and after. ## Messages from Quark Quark sends you a DM when a plan starts, when it renews, when you change or cancel it, when a payment fails, and when a subscription ends. New subscriptions are charged the full price from the first day: there is no free trial. If your DMs are closed, these are not delivered. The same information is on [your account](https://quark.bot/account?tab=billing) and in the billing portal. ## Gifts You can give someone Quark Pro for one server: 1 to 12 months, or Lifetime. ### Give a gift 1. On the [pricing page](https://quark.bot/pricing), press **Gift Pro**. 2. Choose **Months of Pro** or Lifetime, and **Their server's size**. The price depends on the size. 3. Optionally enter the recipient's Discord user ID. Only they, or you, can then redeem it, and Quark sends them the link. Leave it empty and anyone with the link can redeem it. 4. Pay. You get a gift link, which is also listed on the **Gifts** tab of [your account](https://quark.bot/account?tab=gifts). Gift links do not expire. ### Redeem a gift 1. Open the link and sign in with Discord. 2. Choose the server the gift is for. 3. Press **Redeem for** *server*. Pro is put on that server straight away and stays there. Then press **Add the Pro bot** to add the Pro bot. See [getting started](/subscriptions/overview#getting-started). Which servers you can choose: | Rule | If not | | - | - | | You have Administrator, Manage Server, Manage Channels or Manage Webhooks in it | It is not listed | | It is no bigger than the size the gift was bought for. A smaller server is fine | "Too big for this gift" | | Nobody else's plan is on it | "That server already has someone's Pro on it" | | If you have a pack running, it is the server that pack is for | "Your running pack is for another server" | A refused redeem leaves the gift unused, so you can try again. * If you already have a pack running on the server, the gifted months are added to the end. A gift for a smaller server than your pack cannot extend it. * A gift bought before per-server pricing still asks for a server, and covers up to 10 servers of any size. * If you have a running subscription, a gifted pack cannot be redeemed until it ends. The link will still work then. A gifted Lifetime can be redeemed straight away. Your subscription then ends at the close of its paid period and is not charged again. * If your subscription's last renewal payment failed and is still being retried, the gift page says so and offers **End subscription and redeem**. That ends the subscription now, and you are not charged for that renewal. The gift starts the same day. It may ask why you are leaving, which is optional. **Not now** leaves everything as it is. * If you already have Lifetime, you cannot redeem it. Pass the link on to someone else. # Overview Source: https://docs.quark.bot/subscriptions/overview Quark Pro: what it is, how it is priced, and how to start using it Quark is free to use. Quark Pro adds more, and is bought for one server at a time. | Plan | In short | | - | - | | Free | Every log type, every category channel, ignore rules, live log viewer | | Quark Pro Lite | Free, plus custom colours, your own log formats, a channel per log type, and the choice to log bot actions. No longer sold. See [Pro Lite](#pro-lite) | | Quark Pro | Pro Lite, plus 30 days of message history, 30 days of searchable logs on the web, CSV export, and more | See the [comparison](/subscriptions/comparison) for the full list. > [card] [Plans and prices](https://quark.bot/pricing) > > Current prices and offers > [card] [Your account](https://quark.bot/account?tab=billing) > > Your plan and the servers that have Pro ## Ways to get Quark Pro | Option | How it works | | - | - | | Monthly or yearly subscription | Renews until you cancel. Yearly costs the same as 10 months | | Quark Pro Lifetime | One payment. Nothing renews and nothing expires | | Quark Pro packs | 1 to 12 months of Quark Pro for one payment. No renewal. Buying more months for the same server adds to the end date | | Gift | Buy a pack or Lifetime for someone else. See [gifts](/subscriptions/manage#gifts) | | Voting | Vote for Quark on Top.gg to unlock Pro Lite for free on a server under 1,000 members. See [voting](/subscriptions/voting) | Each of these is for one server. Prices, and any offer available to you, are on the [pricing page](https://quark.bot/pricing). Prices exclude tax. ## Priced by server size Quark Pro costs more for a bigger server. Each server is in one of three sizes: | Size | Members | | - | - | | Small | Under 1,000 | | Medium | 1,000 to 9,999 | | Large | 10,000 or more | * Quark reads the member count when you choose the server. If it cannot tell, the server counts as small. * On a subscription, each server's size is checked again before every renewal. A server that has grown or shrunk is charged at its new size from that renewal. * Every server after your first on the same plan is **25% off**. The full-price one is always your biggest server. The same goes for Lifetime: another server's Lifetime is 25% off unless it is bigger than every server you already have. * One subscription, or one set of Lifetime servers, covers up to **15 servers**. For more, ask in the [support server](https://quark.bot/support). * A pack or gift is priced for one server of the size it was bought for. ## Getting Started You choose the server before you pay. On the [pricing page](https://quark.bot/pricing) press **Choose your server**, or open the server's **Billing** tab on the dashboard. You see the server's size and its price before you pay. The list shows the servers where you have Administrator, Manage Server, Manage Channels or Manage Webhooks. You can only buy Pro for a server you manage. To give Pro to someone else's server, send them a [gift](/subscriptions/manage#gifts). **1. Pay** When checkout completes, Pro is put on the server straight away. You do not have to apply it. If someone else's plan is already on that server, Pro is not put on it. Ask them to remove theirs. The setup page then asks one question, **What made you get Pro today?** It is optional, asked once per server, and only used to decide what to build next. **2. Add the Quark Pro bot (optional)** After checkout you are taken to a setup page. Press **Add the Pro bot** and add it in Discord. You can also use the [Pro invite link](https://quark.bot/invite/pro). Once the Pro bot has joined, the page offers **Bring settings over**. This copies the server's log channels, formats, automations and tags from Quark to Quark Pro. You check everything before it is copied, and you can skip it. **3. Use the paid features** The paid features are available straight away on the main Quark bot. You do not have to add the Pro bot to get them. Logging of bot actions stays off until you turn it on under **Logging → Ignore Rules**. Quark posts a **Server Upgraded** log in your Quark Events channel when the plan is applied, saying who gave it. ## Pro stays on its server Quark Pro bought for a server stays on that server. This is true of subscriptions, Lifetime, packs and gifts. * It cannot be moved to another server. To give another server Pro, buy Pro for that server. On a subscription, press **Get Pro for another server** on the **Billing** tab of [your account](https://quark.bot/account?tab=billing), or **Add to my plan** on that server's **Billing** tab. You are charged now for the rest of the current billing period. * To stop paying for one server on a subscription, open that server's **Billing** tab and press **Stop Pro on this server**. See [stop Pro on one server](/subscriptions/manage#stop-pro-on-one-server). * A server can only have one plan on it at a time. ### Plans bought before this Plans bought before Pro was locked to a server keep their old rules, and can still move between servers. These are: * plans bought per server from 20 to 23 October 2026 * plans from before per-server pricing, which cover up to 10 servers of any size * Lifetime and packs bought before the lock * Pro Lite from votes Move them on the **Legacy plans** tab of [your account](https://quark.bot/account?tab=legacy). Press **Remove** next to a server, then **Add a server**. The tab only shows when you have one of these plans. Pro Lite from votes is managed on the **Billing** tab instead. ## The Quark Pro bot The Pro bot is a separate bot with its own configuration. On the dashboard, switch between the **Quark** and **Quark Pro** tabs to configure each one. Running both gives you two independent sets of logs, so one can act as a backup for the other. You do not need it. A server with Quark Pro gets every Pro feature on the main bot. Pro Lite does not include the Pro bot. ## Pro Lite Pro Lite is no longer sold. If you already have a Pro Lite subscription, it carries on as it is, and the pricing page still lets you change its period or move up to Pro. When you cancel a subscription, the cancellation page may offer **Switch to Pro Lite** instead. Your servers keep their logs and settings, and you lose the log archive, search and export. Pro Lite also comes free with [voting](/subscriptions/voting). ## Paying Subscriptions are paid through Stripe, and tax is added at checkout where it applies. Lifetime, packs and gifts are one-off payments. The pricing page shows the payment methods available for each. For changing plan, cancelling, failed payments and refunds, see [managing your plan](/subscriptions/manage). # Voting Source: https://docs.quark.bot/subscriptions/voting Unlock Pro Lite for free by voting for Quark on Top.gg A vote for Quark on [Top.gg](https://top.gg/bot/704802632660943089/vote) cast through `/vote`, or through a link on the dashboard, gives two rewards. A vote cast directly on Top.gg only counts towards your own balance. Both rewards are for servers **under 1,000 members**. A bigger server needs [Quark Pro](/subscriptions/overview), priced for its size. ## For a server: 24 hours of Pro Lite Run `/vote` in a server and vote through the link it gives you. That server gets **Pro Lite for 24 hours**. * Any member can do this. No permissions are needed. * In a server of 1,000 members or more, the vote still counts towards your balance and the server's monthly total, but it does not unlock Pro Lite. * Each further vote adds another 24 hours, up to 7 days ahead. * Locked Pro Lite options on the dashboard link to the same vote page. * The **Pro Lite** card on the dashboard's **Logging** page has **Vote on Top.gg** and **Share**. Share copies a vote link for this server, to post for your members. A vote through it unlocks Pro Lite here, like a vote through `/vote`. `/vote` also shows how long the server's unlock has left and how many votes its members have cast this month. ## For you: a week of Pro Lite Every vote also counts towards your own balance. **3 votes** can be exchanged for **7 days of Pro Lite on up to 5 servers** under 1,000 members that you choose. 1. Open the **Billing** tab of [your account](https://quark.bot/account?tab=billing). 2. Under **Vote rewards**, press **Claim a week of Pro Lite**. 3. Under **Server with Pro Lite**, add the servers to put it on. The **Vote rewards** card only shows when you have no paid plan. A balance of fewer than 3 votes expires 5 days after your most recent vote. A balance of 3 or more does not expire. > [!WARNING] > > Vote rewards are Pro Lite, for accounts without a plan. Do not redeem them if you already have a paid plan. ## Rules * You can vote once every 12 hours. * A vote can take up to a minute to register. * Top.gg counts weekend votes twice in its own rankings. Quark counts every vote once. ## Vote reminders Quark thanks you by DM after your first vote in a month and again when you reach 3 votes, and can remind you when you are able to vote again. The DM has buttons to turn reminders on or off, or to stop vote DMs altogether. To turn them back on, run `/vote`. # Tickets Source: https://docs.quark.bot/tickets/overview Private support tickets, opened from a panel in your server Members open a ticket by pressing a button on a **panel** that Quark posts in one of your channels. Each ticket is a private thread that only the member and your staff can see. Staff can answer in Discord or from the dashboard, and every ticket keeps a transcript. Tickets are on the dashboard under **Tickets** in the sidebar. The quickest way to start is `/setup` in Discord: choose **Tickets**, pick the channel for the panel and the staff roles, then post it. ## Panels A panel is a message with a button for each kind of ticket. Under **Tickets → Panels** you can: * add up to 25 buttons, each with its own label, emoji, colour and line of text; * set the staff roles who answer each button's tickets, and whether only those roles see them; * add a form of up to 5 questions that the member answers before the ticket opens, including file questions; * see a preview of the panel exactly as Discord will show it, then **Save and post** (or update the one already posted). ## Working on a ticket Each ticket opens with a card of buttons for staff: **Claim**, **Add** a person, **Close**, and **More actions** for the rest. | In a ticket you can | Where | | - | - | | Claim it, so others know you have it | **Claim** | | Set its priority (low, normal, high or urgent) | **More actions** | | Mark it as waiting on the member | **More actions**. Quark nudges them, and can close the ticket if they stay quiet | | Add a private note, never shown to the member | **More actions** | | Move it to another category, or merge it into another ticket | **More actions** | | Close it with a reason, or reopen it | **Close**, or the dashboard | Everything on the card is also on the dashboard, and in Discord with `/ticket` (for example `/ticket priority` or `/ticket wait`). See the [command list](/commands/list). On the dashboard, **Tickets** lists every ticket beside the one you have open. Filter by Everyone's, Claimed by me, Unclaimed or category, and use J and K to move up and down. Each ticket shows the form answers, who claimed it, the member's warns, cases and earlier tickets, and the full transcript. You can reply from there, and replies show up in Discord straight away. Bulk actions close or claim several tickets at once. When a ticket is closed, Quark posts its transcript to your transcript channel and can ask the member to rate the help they got. ## Settings **Tickets → Settings** holds the staff roles added to every ticket, the transcript channel, how many tickets one member can have open, closing tickets that have gone quiet, ratings, and business hours for response times. ## Stats **Tickets → Stats** shows tickets opened and closed, open now, first response and resolution times, ratings and the busiest categories over 7, 30, 90 or 365 days. ## What each plan gets | | Free | Quark Pro | Quark Enterprise | | - | - | - | - | | Tickets, panels and forms | Unlimited | Unlimited | Unlimited | | Transcripts kept | 30 days | 1 year | 5 years | | Claiming, notes, priority and waiting on the member | Yes | Yes | Yes | | Ratings and business hours | Yes | Yes | Yes | | Replies from the dashboard, live updates and bulk actions | Yes | Yes | Yes | | Tags as slash commands | Yes | Yes | Yes | | Ticket stats, times and ratings | Yes | Yes | Yes | | Saved replies, merging and reminders | No | Yes | Yes | | Public tickets | No | Yes | Yes | | Help centre | No | With Quark's credit | Credit removable | | Quark's avatar, banner and bio on your server | Nickname only | Yes | Yes | | Matching tags and reply time when a ticket opens | No | Yes | Yes | | Automatic answers | No | No | Yes | | Per-staff times and top reasons | No | No | Yes | Coming from Ticket Tool or tickets.bot? See [Switch to Quark](/dashboard/switch). # Troubleshooting Source: https://docs.quark.bot/troubleshooting Find out why logs are missing and fix it ## Run the troubleshooter first Quark has a built-in troubleshooter. It checks your configuration, Quark's permissions in each log channel, and the delivery path, then lists what it found, most serious first. > [tab] In Discord > > Run `/troubleshoot` in your server. You need **Manage Channels** and **Manage Server**. > > The reply is only visible to you. Set `share` to true to post it in the channel instead, for example when asking for help. A shared report shows channel names, ignore list entries and missing permissions to everyone who can see the channel, so share it in a staff channel. > [tab] On the dashboard > > Open your server on the [dashboard](https://quark.bot/dashboard) and press the stethoscope button in the header. If Quark already found a problem, a banner on the **Logging** page says so. Press **See details**. The report has one of three headlines: | Headline | Meaning | | - | - | | N problems stopping logs | Something is blocking logs. Fix these first | | Logs are working, with gaps | Logs arrive, but some are missing or incomplete | | Nothing wrong found | Every check that ran passed | Where a problem can be fixed without a decision from you, the troubleshooter offers a button: **Fix this** on the dashboard, or **Register webhook**, **Remove ignore rule** or **Stop ignoring bots** in Discord. Run the troubleshooter again afterwards to confirm. ### A thread as a log channel A thread can be a log channel, and the troubleshooter checks it as one. * Quark's webhook for a thread is in the channel the thread is in, and the thread's permissions come from that channel. A missing permission or a full list of webhooks names that channel, and the fix is made there. * In a thread, Quark needs **Send Messages in Threads** where it would need Send Messages in a channel. * If the thread's webhook is ever lost, Quark posts the logs in the thread itself, and for that its role needs **Send Messages** across the server. Without it, the troubleshooter says "Quark's role is missing Send Messages, which a log thread needs". Change this on Quark's role in Server Settings, not on a channel. ## Send a test log Both versions of the troubleshooter have a **Send a test log** button. It sends one real log, visible in the channel your Quark Events logs go to, through the full delivery path, and tells you whether it arrived or where it stopped. You can use it once a minute per server. | Result | What to do | | - | - | | Delivered | Delivery works. If a particular log is still missing, see [settings that explain missing logs](#settings-that-explain-missing-logs) | | No channel is configured | Set a log channel. See [quickstart](/quickstart) | | The webhook no longer exists | Press **Register webhook** or **Fix this**, or choose the channel again on the dashboard | | Discord refused the request | Quark is missing a permission in the log channel, usually Manage Webhooks or Embed Links | | The channel is at Discord's rate limit, or a log type is paused | Too many logs are going to one channel. Move some categories to a second channel | | The delivery path did not answer in time | A fault on Quark's side, not your configuration. Check [status.quark.bot](https://status.quark.bot) | ## Problems that stop logs | The troubleshooter says | What it means | Fix | | - | - | - | | Quark is not in this server | Quark was removed, so it receives nothing | [Invite Quark](https://quark.bot/api/invite?source=docs) again. If you do it soon after the removal, the dashboard offers to restore your previous configuration | | This server has no Quark configuration yet | Quark joined moments ago and setup is still running | Wait a minute and re-run. If it stays, press **Fix this** on the dashboard | | No log channel is set | Quark has nowhere to send logs | Run `/logging` and choose a channel, or use **Logging → Channels** on the dashboard | | The log channel no longer exists | The channel a category points at was deleted | Press **Fix this** to clear it, then choose a new channel | | No webhook registered for a category or log type | It has a channel but no webhook. Quark tries to post those logs itself, which needs Send Messages, and they are lost without it | For a category, press **Register webhook** or **Fix this**. For a single log type, press **Fix** on the dashboard's Channels tab, or choose its channel again | | This channel already has the maximum number of webhooks | Discord limits how many webhooks a channel can have, and this one is full | Delete an unused webhook in the channel's **Integrations** settings, or choose another channel | | Quark is missing permissions in this log channel | The report lists each missing permission and what it costs | Grant them to Quark's role in that channel. See [permissions](/permissions#in-each-log-channel) | | Quark cannot read this server's audit log | Bans, kicks, timeouts, and role, channel, webhook and server changes are never logged | Give Quark's role **View Audit Log** in Server Settings | | The @everyone role is being ignored | @everyone is on an ignore list, which is almost never intended | Press **Remove ignore rule** | ## Problems that affect some logs | The troubleshooter says | What it means | Fix | | - | - | - | | You are on the ignore list, or One of your roles is on the ignore list | Your own account, or a role you hold, is ignored, so nothing you do is logged. This is the usual reason a test delete shows nothing | Press **Remove ignore rule**, or test with another account | | A log channel is itself being ignored | Events in the log channel are filtered out. Usually intended, but posting there to test shows nothing | Test in a different channel | | *Bot* deleted Quark's webhook | Another bot, usually an anti-nuke or security bot, deleted the webhook Quark posts logs through. See [below](#another-bot-deleted-quarks-webhook) | Add Quark to that bot's allow list | | Quark cleared a log channel automatically, or A log channel is failing right now | Discord reported the channel as unknown several times in a row. After five, Quark removes it from your configuration | Choose a channel that exists | | *Log type* is paused on this channel | The channel has been over Discord's rate limit long enough that Quark paused its busiest log type so the rest keep flowing. It resumes on its own | Move one or two categories to a second channel | | This channel is over Discord's rate limit | More logs are being sent to the channel than Discord accepts. The limit is per channel | Move some categories to a second channel, or turn off your busiest category | | Configured correctly, but no log has ever arrived | Everything checked looks right, yet nothing has been delivered | Send a test log | ## When Quark tells you it can't post logs If Quark loses logs because it is missing a permission in a log channel, it tells the server. It also does this when the channel's webhook is gone and Quark cannot make a new one. A lost webhook is usually replaced on the next log, so Quark only says something if logs are still failing a minute later. A deleted log channel gets no message. In a server of 1,000 members or more, Quark also checks a channel as soon as it is set as a log channel, and tells you straight away if it is missing something there. ### Where the message goes | Server | First message | If logs are still lost 24 hours later | | - | - | - | | 1,000 members or more | A DM to the person who last set a log channel. If they can't be reached, the person who added Quark, then the server owner | A post in the server | | Under 1,000 members | A post in the server | Nothing more | * The DM only goes to someone still in the server with Manage Server or Administrator, or the owner. If nobody can be sent it, or their DMs are closed, it is posted in the server instead. * A post in the server goes to the system channel, or the first channel where Quark can post. It never goes to the channel that is broken. * Quark sends at most 2 messages for one problem, and at most one new problem per channel a day. * The message is in your server's language. ### What it says The title is "Quark can't send logs to #*channel*". It names the missing permissions and says how many logs could not be posted since when. Where logs go through Quark's webhook, Quark needs **View Channel** and **Manage Webhooks**. Where Quark posts them itself, it needs **View Channel**, **Send Messages** (**Send Messages in Threads** for a thread) and **Embed Links**. See [in each log channel](/permissions#in-each-log-channel). | Button | What it does | | - | - | | **Fix it** | Opens the troubleshooter for the server on the dashboard | | **Open channel** | Opens the log channel in Discord | | **Check again** | Checks Quark's permissions in the channel now. If nothing is missing, the message changes to **Fixed**. If something still is, only you see a reply saying what | | **Ignore for this channel** | No more messages about this channel for 30 days. The troubleshooter still shows the problem | In a DM, only the person it was sent to can press **Check again** or **Ignore for this channel**. In the server, anyone with Manage Server or Administrator can. Quark never changes your permissions itself. Give Quark the permissions in the channel's settings, under **Edit Channel → Permissions**. ### While the problem lasts Logs that still arrive in your other log channels are posted under the name **⚠ Quark — some logs can't be sent**. They go back to the usual name once it is fixed. The problem closes when the next log is delivered to that channel, when **Check again** finds nothing missing, or when the channel stops being a log channel. The message then changes to **Fixed** and says when a log got through. If the channel is deleted, **Check again** changes it to **Channel deleted**. A problem with no lost log for 14 days closes on its own. The troubleshooter shows when Quark has already told the server about a problem: how many logs were lost, and when and where the message went. `/troubleshoot` also names the person who was sent the DM. The Quark Pro bot sends its own messages about its own log channels. ## Another bot deleted Quark's webhook Some anti-nuke and security bots delete webhooks made by bots they do not trust. Quark posts logs through a webhook in each log channel, so when another bot deletes it: * Quark posts a notice in that channel naming the bot, at most once every six hours. * Quark makes a new webhook with the next log, and the other bot may delete that one too. Logs can be lost each time. * The [troubleshooter](#run-the-troubleshooter-first) lists it for a week. To stop it, add Quark to that bot's allow list. The notice in Discord and the troubleshooter give the steps for the bot that did it. Here they are for the bots with a guide of their own, and for any other bot. Quark's ID is `704802632660943089`. If you also use **Quark Pro** (ID `881671728491794442`), do the same for that bot. Once Quark is on the list, nothing else needs doing: the next log makes a new webhook. ### Wick Wick watches webhooks in two ways: Anti-Nuke counts webhooks being made and deleted, and its heat system counts messages sent by webhooks as spam. Quark's logs can trip either, so do both of these: 1. Open [Wick's dashboard](https://wickbot.com/dashboard) and pick your server. Sign in as the owner or an Extra Owner, because Wick's Trusted Admins can't change Anti-Nuke settings. 2. Under **Immunity & Permits**, make Quark's role a permit role and whitelist it from **Antinuke** limitations. Save. 3. So Wick stops counting Quark's logs as webhook spam, run `w!whitelist #your-log-channel` in Discord and choose **Spamming**. Use your own prefix if you changed `w!`. See Wick's [setup guide](https://docs.wickbot.com/setup/) for more on its whitelist and Anti-Nuke. ### bleed 1. As the server owner or an antinuke admin, run `,antinuke whitelist 704802632660943089`, or `,antinuke whitelist 881671728491794442` for Quark Pro. Use your own prefix if you changed `,`. 2. Run `,antinuke list` and check Quark is on the whitelist. See bleed's [antinuke docs](https://docs.bleed.bot/security/antinuke) for more. ### Any other bot 1. Open the bot's dashboard or settings and find its anti-nuke or security section. 2. Add Quark to its allow list. It may be called the whitelist, trusted list or exempt list. If it asks what to allow, allow managing webhooks. 3. If the bot only allows roles, allow Quark's role. ## Quark was removed as soon as it joined Some security and anti-raid bots remove any bot that joins until they are told to allow it. If Quark is removed seconds after you add it, that is almost always why. The setup page and the dashboard say so, list the bots known to do this, and show the steps for the one you pick. Quark can't tell which bot it was: once removed, it can't see your server. **Server Settings → Audit Log** shows which bot removed it. Quark's ID is `704802632660943089`, and Quark Pro's is `881671728491794442`. ### Wick's Join Gate Wick's **Join Gate** has a **Bot Addition Filter** that removes bots added by anyone it doesn't trust. 1. Have the server owner, an Extra Owner, a Trusted Admin, or someone whose highest role is above Wick's invite Quark. Wick lets them add bots. 2. Or switch the filter off while you add Quark: run `w!jg 4a ?off`, invite Quark, then run `w!jg 4a ?on`. Use your own prefix if you changed `w!`. 3. Still removed? Wick's **Unverified Bots** filter may be on as well: do the same with `w!jg 6a ?off` and `w!jg 6a ?on`. See the Join Gate section of Wick's [setup guide](https://docs.wickbot.com/setup/). ### Security's Bot Add trigger [Security](https://securitybot.gg)'s Anti-Nuke treats adding a bot as an instant trigger: it kicks the new bot and punishes whoever added it (a kick, unless your server changed it). Check that person is still in the server and has their roles. 1. Have the server owner, or someone with a role above Security's, invite Quark. Security leaves them alone. 2. Or whitelist the person who will add Quark: run `/whitelist add_user`, pick them, and choose the bot add category (or Global). 3. Or switch the trigger off while you add Quark: `/disable` and pick **Bot Add**, invite Quark, then `/enable` and pick **Bot Add**. See Security's docs on [switching triggers](https://docs.securitybot.gg/anti-nuke/anti-nuke/enable-disable-action-triggers). ### bleed's antinuke bleed's antinuke **botadd** module removes bots that aren't on its whitelist. 1. As the server owner (or an antinuke admin), run `,antinuke whitelist 704802632660943089`, then invite Quark. Use your own prefix if you changed `,`. 2. Whitelisting lets Quark past all of bleed's antinuke. To avoid that, run `,antinuke botadd off`, invite Quark, then `,antinuke botadd on` instead. See bleed's [antinuke docs](https://docs.bleed.bot/security/antinuke). ### Another bot 1. Open **Server Settings → Audit Log**: it says which bot removed Quark. 2. In that bot's settings, find what removes new bots. It is often called bot add, join gate or anti-bot. 3. Have the server owner invite Quark, or add Quark to that bot's allow list, then invite Quark again. ## Settings that explain missing logs These are choices your server has made. The troubleshooter lists them because they are the usual answer to "why did this one not appear". | The troubleshooter says | What it means | | - | - | | N log types are switched off | They are disabled under **Logging → Individual Log Config** | | Actions by other bots are not logged on the free plan | On the free plan Quark does not log actions done by, or to, other bots. Bans, kicks, timeouts and their reversals, joins and leaves, bulk deletes, and bots being added or removed are still logged. See [actions by bots](/logs/behaviour#actions-by-bots) | | Actions performed by bots are being ignored, or Actions targeting bots are being ignored | On a paid plan this is a setting. Press **Stop ignoring bots** to change it | | Deletions of older messages produce no log on this plan | The message was sent more than 12 hours ago and **Pro upsell logs** is switched off, so there is nothing to show. See [message age](/logs/behaviour#message-age) | | Most channels in this server are ignored | Message and voice logs will be sparse | | N ignore rules point at a deleted role | These rules do nothing and can be removed | ## Other problems > [accordion] A deleted message was logged without its content > > Quark can only show the content of a message it saw being sent and still has stored. On the free plan and Pro Lite that is 12 hours. On Quark Pro it is 30 days. Messages sent before Quark joined, or while it could not see the channel, cannot be recovered. > > See [message age](/logs/behaviour#message-age). > [accordion] A log is in the log viewer but was not posted in Discord > > Open the entry in the log viewer. If it is marked **Held back by rule**, an [automation](/dashboard/automations) rule with **Don't send this log** held it back. Switch that rule off, or change its conditions, on the **Automations** page. Otherwise the entry's **Delivery status** says why the log did not reach Discord. > [accordion] An automation rule has stopped moderating > > Look at the rule's row on the **Automations** page, and at the latest **Rule Action** log about it in your Quark Events channel. They say what is missing. > > If it is the person who last changed the rule, they have left the server or lost the Discord permission the rule uses. Someone who holds that permission has to edit the rule, or switch it off and on. See [if a rule stops acting](/dashboard/automations#if-a-rule-stops-acting). > > If the row says the rule ran more often than a rule is allowed to in an hour, it has reached an [hourly limit](/dashboard/automations#safety-rules) and starts again in the next hour. > [accordion] The dashboard says I don't have permission to change a logging setting > > On a server with an [automation](/dashboard/automations) rule that moderates, a change that lets more be logged needs the Discord permissions those rules use. Removing an ignore rule and switching a log type on are two such changes. People who manage the server need those permissions too. > > Ask someone who has them to make the change. See [changes that let more logs reach a rule](/dashboard/automations#changes-that-let-more-logs-reach-a-rule). > [accordion] A modlog has no Edit Reason button, or Edit Reason says the modlog shares its message > > On a busy channel, Quark can post several logs in one message. A modlog posted that way has no Edit Reason or Lock button, and its reason cannot be edited. Whether a channel is busy is counted for each channel, so giving **Modlogs** a channel of their own makes this less likely. > > A modlog also has no Edit Reason button when **Modlog reasons** was set to **Never editable** when it was posted. See [modlog reasons](/logs/options#modlog-reasons). > > A [log format](/dashboard/formats#buttons-a-format-leaves-off) leaves Edit Reason off a modlog it has rearranged: a compact or Advanced one, one laid out with Components or drawn as a picture, or one with the footer, the time or one of its first three fields hidden. The same goes for Show Edits on an edited message. On an older modlog whose format has since changed to Components or a picture, Edit Reason replies that its reason can't be edited in that layout. Lock and History still work. > [accordion] Images could not be added to a modlog > > The reply says why. An image has to be a PNG, JPEG, GIF or WebP of up to 6 MB, and a modlog holds up to 4. A locked modlog, or one that shares its message with other logs, cannot be given images. > > If the reply says Quark needs **Attach Files**, give Quark that permission in the modlog channel. See [modlog images](/commands/behaviour#modlog-images). > [accordion] Get IDs or Report log issue says the message is not a valid Quark log > > Both only work on a log posted by the bot whose command you chose. If Quark and the Quark Pro bot are both in your server, each has its own **Get IDs** and **Report log issue** in the **Apps** menu. Choose the one from the bot that posted the log. > [accordion] The setting for a log channel is empty and I did not change it > > If Discord reports a log channel as unknown five times in a row, Quark clears that channel from your configuration. This happens when the channel, or Quark's webhook in it, is deleted. Choose the channel again. > [accordion] Quark's commands do not show up > > Most commands are hidden from members without the required permission. Check **Server Settings → Integrations → Quark** to see who can use each command. See the [command list](/commands/list) for the defaults. > [accordion] The Quark Pro bot left my server > > The Pro bot leaves any server that does not have Quark Pro when it joins. Pro is put on the server when checkout completes, so add the Pro bot from the page you land on afterwards. On a plan bought before Pro was locked to a server, apply it to the server first, then add the Pro bot. See [getting started with a subscription](/subscriptions/overview#getting-started). > [accordion] The dashboard says I cannot manage this server > > You need Administrator, Manage Server, Manage Channels or Manage Webhooks in the server, or someone with one of those has to [give you access](/dashboard/access). > [accordion] A paid feature stopped working > > When a plan ends, Quark keeps your settings but stops applying the paid ones: custom colours, formats, per-log channels and logging of bot actions. They apply again when the server has a plan. Check the **Billing** tab of [your account](https://quark.bot/account?tab=billing) to see which servers have Pro. ## Still stuck? Ask in the [support server](https://quark.bot/support). Post a shared `/troubleshoot` report if you can. If support asks for a debug report, run `/debug`. It sends Quark's developers a report with your server ID, Quark's permissions, your plan and Quark's configuration for your server. Only run it when support asks. Check [status.quark.bot](https://status.quark.bot) to see whether Quark is having problems of its own.