> For the complete documentation index, see [llms.txt](https://docs.subsprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.subsprotocol.com/developer-docs/discord-bot.md).

# Discord Bot

We also provide a Discord bot to manage your community.

Thanks to our Discrod Bot you can set up a bot that will make sure your users are paying your Subscription plan in order to have access to a role. You can then grant the privileges that you want for every single role. And if a user Subcription stop the Bot will remove his role automatically.

### The set of /commands for the Server Admin&#x20;

#### Invite the bot on your server

The link for the bot:

[Click here to invite Subs Bot](https://discord.com/api/oauth2/authorize?client_id=1112042095885160469\&permissions=8\&scope=bot%20applications.commands)

#### Synchronize your bot with a Subs Application & Payment

To link your bot to your Subs Application your can use:

```
/link_role_app role: 'defaultRole' app_id: '5' payment_name: 'premium' chain: 'bsc'
```

#### Look at the already linked applications & payments

You can check the status of each links with this simple command:

```
/list_app
```

### The set of /commands for the User

#### Link a Discord User ID with a wallet

In order to promote or kick a user accordingly of if he pays a Subs Subcsription they first need to connect their wallet to Subs Discord Bot. They can process by typing this command:

```
/embed_link_wallet
```

The Bot will send a private message to the user with a link to an ephemeral page that will last 15 minutes.

They simply need to sign a message. And we take care of the rest.

Sit back and relax the Bot is set and running.&#x20;

### Want to customise the Bot

Remember you can change access and roles for the Bot.

For example the 3 previous commands are by default for the admin but you can change them if you want.

#### Make a command public

If you want to make a command public follow these simple steps.

Go to your Servers Settings:

<figure><img src="https://1911528868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMi4ivT4S6SjuAElL2Iuo%2Fuploads%2Fu5nJfUA4gbmwmdFpSrJC%2Fimage.png?alt=media&amp;token=b437c5e7-7f1b-4e42-be6a-50d1e46b5448" alt="" width="151"><figcaption><p>Right click on your server icon</p></figcaption></figure>

Then on the Integrations section:

<figure><img src="https://1911528868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMi4ivT4S6SjuAElL2Iuo%2Fuploads%2FxbJvbNcRyGIFQ6CIVsNJ%2Fimage.png?alt=media&amp;token=a87290a4-040b-4321-b04e-9c16c883f353" alt="" width="563"><figcaption><p>Select Integrations</p></figcaption></figure>

Click on SubsBot, you will find 3 commands:

<figure><img src="https://1911528868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMi4ivT4S6SjuAElL2Iuo%2Fuploads%2Ft3xq0yo8tU77Hygy8IP3%2Fimage.png?alt=media&amp;token=71ecd704-34e1-41c2-affa-c4bf304d4735" alt="" width="563"><figcaption><p>Here is the list of commands used with SubsBot</p></figcaption></figure>

By clicking on of of them, you can customize where this command can be used and by whom.<br>

<figure><img src="https://1911528868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMi4ivT4S6SjuAElL2Iuo%2Fuploads%2F3kjrNLKcKRmTgrg6HGKt%2Fimage.png?alt=media&amp;token=946e9310-8aa5-46de-bfde-782704889f53" alt="" width="563"><figcaption><p>You can grant the permissions to a specific role</p></figcaption></figure>

And that's it, your fully customized SubsBot !
