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

![](https://1787527057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mhe-jpAn3WRDBf54pzj%2Fuploads%2FfGRYMFJZjbLQqGK6NvlX%2Fimage.png?alt=media\&token=7a9490d9-2cac-43bb-a884-d006ba5189f1)

## Configure Your Permission Groups

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

![](https://1787527057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mhe-jpAn3WRDBf54pzj%2Fuploads%2FLwjIVPoH5Syuaxtw9ImZ%2Fimage.png?alt=media\&token=1bdf7411-4384-48a6-a0a1-42b9ae38b1be)

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

![](https://1787527057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mhe-jpAn3WRDBf54pzj%2Fuploads%2F8oPmsjJj8rZMBnWNRDHS%2Fimage.png?alt=media\&token=b8c8388f-b391-4102-b11d-ec79d7df178f)

<br>

Coming soon
