# Managing Channels in the App

#### Adding a Text Channel to the App

You can add a channel to the app so it sends notifications whenever a **new message** appears. Moonitor supports notifications for both **embed messages** and **regular text messages**.

Use the following command to add a channel:

```
$monitor addappchannel <#channel>
```

#### How Notifications Work

* Moonitor automatically **detects links** in embeds or messages.
* If a **link is detected**, clicking the notification will **open the link directly**.
* If **no link is detected**, the notification will **open the Discord channel instead**.

***

### Removing a Channel

To remove a channel from the app, use one of the following commands:

```
$monitor removeappchannel <#channel>
```

or

```
$monitor removeappchannel <channelname>
```

⚠️ **Important:**\
If you want a **monitor channel** to be removed from the app, add **`staff`** somewhere in the channel name before removing it.\
Moonitor **does not automatically add channels that contain `staff` in their name**.

***

### Changing a Channel Category

To switch a channel category between **Announcements** and **Monitors** (or vice versa), use:

```
$monitor switchappcategory <#channel>
```

or

```
$monitor switchappcategory <channelname>
```

***

### Removing Deleted Channels

You can automatically remove channels that were deleted from Discord but still exist in the app using:

```
$monitor cleanappchannels
```


---

# 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://appdocs.moonitor.tools/staff/managing-channels-in-the-app.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.
