# Whitelist Channels

Setting a whitelist of channels is recommended as it will not allow users to submit trades in channels not designated for submitting them, but all other commands will still function in non-whitelisted channels.\
\
If a whitelist has not been set, when the bot is used in a channel that it doesn't have the required permissions in, it will reply or send a DM to that user with a permissions checklist noting which perms are missing.

### Add Channels To Whitelist

{% hint style="info" %}
**`$whitelist add #channel`**
{% endhint %}

To add a channel to the whitelist use the command `$whitelist add` and specify the channel to add. You can add multiple channels to the whitelist in one command by spacing out each channel.\
\
If successful, the bot will react with :white\_check\_mark:\
![](/files/nyczRtWEi9qDlz4iqcjo)

### Remove Channels From Whitelist

{% hint style="info" %}
**`$whitelist remove #channel`**
{% endhint %}

To remove a channel from the whitelist use the command `$whitelist remove` and specify the channel to remove. You can remove multiple channels from the whitelist in one command by spacing out each channel.\
\
If successful, the bot will react with :white\_check\_mark:\
![](/files/LcLLt8mZb4I3V7y7jTRX)

### List Whitelisted Channels

You can view all the whitelisted channels by using the command `$whitelist`![](/files/YupvblsfhVlcoTgqyRz4)

{% hint style="info" %}
Use `$whitelist clear` to clear all channels from a whitelist
{% endhint %}


---

# 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://docs.nvstly.com/discord-bot-setup/server-settings/whitelist-channels.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.
