# Moonitor Notifications

Introduction and setup to our new Moonitor Notifications app


# 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
```


# Adding an Entire Category of Channels

You can add all channels from a Discord category to Moonitor at once.

#### Command

Use the following command to add an entire category:

```
$monitor addcategory <categoryname> <type>
```

#### Parameters

* **categoryname** — The name of the Discord category.
* **type** — Can be:
  * `monitor`
  * `normal`\
    (These correspond to the same types used in the app.)

⚠️ **Important:**\
Make sure the category name is **one word** when adding it (for example `shopify-monitors`).\
You can rename the category back afterward if needed.

#### Examples

```
$monitor addcategory shopify-monitors monitor
$monitor addcategory announcements normal
```

#### 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**.


# Adding Private Channels

You can add a private channel that sends notifications whenever a new message appears. Moonitor supports both embed and text message pings. Only the mentioned roles will have access to that channel in

#### Command

Use the following command to add a private channel:

```
$monitor addpappchannel <#channel> @role
```

**Example:**

```
$monitor addpappchannel #channel @role
```

#### How It Works

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


# Setting Up Permissions

Select which role can access the app

To configure which roles can access the app, run the following command in your server:

```id="6q1tpa"
$approle @role1 @role2 ...
```

#### How It Works

* This command allows you to **authorize specific roles** to access the app.
* Anyone with **any of the listed roles** will be able to use the app.
* You can include **multiple roles** in the same command.

**Example:**

```id="q3yzls"
$approle @Admin @Moderators @Members
```


