> For the complete documentation index, see [llms.txt](https://zts-guard.gitbook.io/zts-guard-discord-bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zts-guard.gitbook.io/zts-guard-discord-bot/setup-deleted-message-logs.md).

# Setup Deleted Message Logs

Scammers often use obfuscated markdown to disguise links — content that appears as a link visually but isn't technically one. This is due to Discord supporting [Markdown](https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline) which is common on most platforms, however scammers can manipulate it to send what appears as Scam links although its actually not, see an example below:

<figure><img src="/files/DQVwe1BLX0zCdCcNUJS7" alt=""><figcaption></figcaption></figure>

Since anti-link cannot detect these messages (because they actually aren't links), the **Deleted Logs** feature was developed. &#x20;

This feature captures the **raw markdown** of deleted messages, so you can copy it into Discord's Native Auto-Mod feature to block those exact patterns.

<figure><img src="/files/Ljkz8JFjCGgVXw8QWWsE" alt=""><figcaption></figcaption></figure>

## Setup Feature and Logging Channels

For better organization, you can route deleted message logs to a dedicated channel so they don't get buried in high-volume server activity.

{% stepper %}
{% step %}

### Create deleted logs channel

Create `#zts-guard-deleted` channel.  Give access only to mods, team, ZTS Guard Discord Bot, and any necessary roles — keep it minimal.
{% endstep %}

{% step %}

### Configure routing

In `#zts-guard-admin`, type `/setup` → `Deleted messaging logging` → select `Set logging channel` → then enter the newly created `#zts-guard-deleted` channel.

Deleted messages will now go to `#zts-guard-deleted` instead of `#server-logs`.
{% endstep %}
{% endstepper %}

## How to use the logs

When a manipulated markdown message is sent and deleted:

1. Check `#zts-guard-deleted` for the deleted message that will display the raw markdown content
2. Go to the Discord Server Settings `Server Settings` **→ `Safety Setup` → `Automod` →**&#x73;elect your Auto-Mod rule you are using to block phrases such as `Block Custom Words`
3. Add the raw markdown to an Auto-Mod rule to block it going forward

{% hint style="info" %}
Auto-Mod is a Discord native feature, and in order to access it the user will have to have **Manage Server** (Manage Guild) or **Administrator** permissions.
{% endhint %}
