# Adding MayaBot

> Inviting the bot to your server, the permissions it asks for and the position of its role.

Source: https://docs.mayabot.eu/getting-started/add-mayabot

## Inviting the bot

To add a bot to a Discord server you need the **Manage Server** permission there.

### Open the invite

Press **Add to Discord** on [mayabot.eu](https://mayabot.eu). From the [dashboard](https://dashboard.mayabot.eu) you can also press **Invite** next to a server without MayaBot: in that case the server is already selected.

### Choose the server and confirm

Discord shows the permissions MayaBot asks for. Leave them all selected: each one is needed by a module (table below). Then confirm.

### Go back to the dashboard

If you invited the bot from the dashboard, the invite window closes by itself as soon as MayaBot joins, and the server's [Overview](https://docs.mayabot.eu/getting-started/overview) opens. Otherwise you'll find the server in the **With MayaBot** group of the list.

## Required permissions

The invite asks for 18 permissions. Administrator is not one of them and is not needed.

| Permission | What it's for |
|---|---|
| View Channels | Seeing the channels it has to read or write in |
| Send Messages | Writing the messages of every module |
| Embed Links | Showing messages in the Embed (v1) format |
| Attach Files | Sending images: Automatic message, Welcome and Leaves cards |
| Read Message History | Counting, and clearing the Honeypot trap channel |
| Manage Messages | Deleting messages in the Honeypot trap channel and the ones that don't count in Counting |
| Add Reactions | Counting reactions |
| Manage Roles | Giving Welcome and Verification roles |
| Ban Members | Honeypot Softban action |
| Timeout Members | Honeypot timeout action |
| Manage Channels | Creating and deleting temporary channels |
| Move Members | Moving whoever joins the generator channel into their temporary channel |
| Connect | Temporary channel of the Voice channel type |
| Mute Members | Handling mutes in temporary channels |
| Deafen Members | Handling mutes in temporary channels |
| Manage Server | Recording AutoMod actions in the [Logs](https://docs.mayabot.eu/modules/logs) |
| View Audit Log | Counting kicks in the Overview, working out who muted someone in temporary channels and recording moderation and server changes in the [Logs](https://docs.mayabot.eu/modules/logs), with who acted |
| Send Messages in Threads | Requested by the invite; no module writes in threads today |

If you remove a permission after the invite, the Overview flags it with the **Sync permissions** button: see [Missing permissions](https://docs.mayabot.eu/getting-started/overview#missing-permissions). What each module needs, channel by channel, is in [Permissions](https://docs.mayabot.eu/reference/permissions).

## MayaBot's role

When MayaBot joins, Discord gives it a role with its name. Its position in the role list matters:

- MayaBot can only give roles that are **below** its highest role.
- It can only ban or time out members whose role is lower than its own.

> **Move the role up**
>
> If you use Welcome, Verification or Honeypot, drag MayaBot's role above the roles it has to give and above the members it must be able to punish, in **Server Settings > Roles** on Discord.
