# Discord Permissions

## Add the Discord Bot

1. Click [here](https://discord.com/api/oauth2/authorize?client_id=911724556903936081\&permissions=8\&scope=applications.commands%20bot) or use the link below to add the bot to your Discord server.\
   `https://discord.com/api/oauth2/authorize?client_id=911724556903936081&permissions=8&scope=applications.commands%20bot`
2. Locate and copy the `secret` from any server in your StaffWatch community.
3. Go back to Discord and use the `/link [secret]` command with the secret you just copied.
4. If done properly, the bot will now be linked to your community!

![](/files/HOovOiC5hbLMtKfM93MV)

## Configure Your Permission Groups

1. Visit the **Manage Permissions** page on StaffWatch.
2. Edit every permissions group and paste the corresponding role `id`.

![](/files/dQv4jg8eW4ocfS7VkljO)

## Enable Discord Sync

1. Visit the **Manage Community** page on StaffWatch.
2. Under **Discord Permissions Sync** select `Use Discord Sync`.
3. Permissions should automatically sync in **1-2 minutes** 🎉🎉

![](/files/7BtFvlhyUBH8aSURYVDY)

<br>

Coming soon


---

# 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.staffwatch.app/installation/discord-permissions.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.
