# Discord bot

The Tip4Serv bot allows you to give roles to your donors, send them a private message and send a message in a channel.

To **add your Discord server**, follow the steps in [MY SERVERS](https://tip4serv.com/dashboard/my-servers)

{% hint style="info" %}
To configure the roles and the messages to send to customers see [this section](https://docs.tip4serv.com/store-setup/server-commands)&#x20;
{% endhint %}

## Bot troubleshooting

If the bot does not work please read the information below.

### Why members not receiving their Discord role after purchase?

Tip4Serv bot need permission to give a role to a member, it must be above the role to be given.

Go to your **Discord server settings** and simply **drag the Tip4Serv bot role above the other roles** as below:

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2Fn7Jppzr96ntK452toe2t%2Fezgif-1-1fb9e43ae9.gif?alt=media&#x26;token=1db5033a-ab62-4d7b-9bb0-e733d80d08eb" alt=""><figcaption><p>Roles settings</p></figcaption></figure>

### Why are the messages not sent in the chanel?

Tip4serv bot must have permission to post messages to a channel on your server.

Edit channel, go to Permissions and **add Tip4serv.com bot in the ROLES/MEMBERS list**

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2FKLmNt55ciemLtcQMiBuD%2Fezgif-5-9b24a420e3.gif?alt=media&#x26;token=3c48073b-e4ec-4073-b819-3f365e34d0cc" alt=""><figcaption><p>Channel permissions</p></figcaption></figure>

### Check bot permissions

Be sure to give the following permissions to the Tip4Serv bot:&#x20;

* Manage Role
* Manage Server
* Send Message
* Embed Links

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2FK8MH0X2fd2yhjwNYTpTp%2Fezgif-5-1506963e66.gif?alt=media&#x26;token=0971f617-443d-4a8b-9c5d-7abf25b81730" alt=""><figcaption></figcaption></figure>


---

# 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.tip4serv.com/discord-setup/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.
