# Log when Message Blocked

It is possible to make Bad Word Blocker send a message in a channel each time it detects a blacklisted item.

The message will serve as a "log" of the occurrence. &#x20;

## Setting a Log Channel

{% hint style="success" %}
Only people with `Manage Messages` or `Administrator` permission can set the log channe
{% endhint %}

1. Navigate to your Discord server
2. In any channel, type in `/log set`     &#x20;
3. Enter the desired channel in the input box
4. Hit the Enter button if you're on computer. If you're on mobile, hit the send button

## Viewing or Removing the Current Log Channel

{% hint style="success" %}
Only people with `Manage Messages` or `Administrator` permission can view or remove the log channel
{% endhint %}

1. Navigate to your Discord server
2. In any channel, type in `/log manage`     &#x20;
3. The current log channel (or lack of) should be shown.
4. If you want to remove current log channel, hit the `Remove` button. If pressed, the channel will longer receive logs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bad-word-blocker.gitbook.io/bad-word-blocker-docs/logs/log-when-message-blocked.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
