# Discord Bot

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="/files/eADnYT8vhFZppANgt58y" alt="" width="151"><figcaption><p>Right click on your server icon</p></figcaption></figure>

Then on the Integrations section:

<figure><img src="/files/P5s9YvOpR268naLY2V1t" alt="" width="563"><figcaption><p>Select Integrations</p></figcaption></figure>

Click on SubsBot, you will find 3 commands:

<figure><img src="/files/hQFVgUVgDd2BKq13gGyv" 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="/files/fraT9eUJ3z5spoJJcXxw" 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 !


---

# 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.subsprotocol.com/developer-docs/discord-bot.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.
