# Verification

> A message with a button that leads to an anti-bot check; whoever passes it gets the chosen roles.

Source: https://docs.mayabot.eu/modules/verify

MayaBot publishes a message with a button in a channel. The button opens a verification page on `verify.mayabot.eu`: whoever passes the anti-bot check gets the roles you chose, from 1 to 10. You'll find it in **Config > Members**.

Verification only adds roles: it never removes any.

A typical use: the **Member** role gives access to the server's channels, and only people who verify get it.

## Setting up

### Turn the module on

Turn on the **Verification** switch and press **Set up**.

### Choose the channel and the message

Choose the **Channel** to publish in and the **Format**. The suggested text is "Press the button below to verify and get access to the server."

### Set up the button

In **Verification button** choose **Label** (default **Verify**, up to 80 characters) and **Emoji** (default ✅). At least one of the two is needed. The suggested text and label follow the [server language](https://docs.mayabot.eu/getting-started/server-language) until you edit them.

### Choose the roles and save

In **Roles to give** choose from 1 to 10 roles and press **Save**. MayaBot publishes the message straight away.

## The message

The message has the three formats of the [Automatic message](https://docs.mayabot.eu/modules/auto-messages#format), without uploaded images: image fields only take links or `%servericon%`.

**Content and Embed (v1)**

MayaBot adds a row with the verification button below the message. The button's link is set by MayaBot and can't be changed.

**Embed (v2)**

You place the button yourself, wherever you like, among the components. In the **Link** field of a button use **Use the verification link**. Without at least one button with the verification link the message can't be saved.

Available placeholders: `%server%`, `%serverid%`, `%servericon%`, `%membercount%`. MayaBot replaces them when it publishes and doesn't update them afterwards: to update them use **Publish again**.

### Publishing again

MayaBot publishes the message on every **Save** and with the panel's **Publish again** icon. If the message is still there, in the same channel and with the same format, MayaBot edits it; otherwise it sends a new one and deletes the old one.

If someone deletes the message on Discord, MayaBot doesn't publish it again by itself: use **Publish again**.

## What people who verify see

### They press the button

The server's verification page opens.

### They log in with Discord

Logging in with Discord is required, because MayaBot needs to know who to give the roles to. People who log in only to verify aren't added to MayaBot's support server.

### They pass the anti-bot check

The check is by Cloudflare Turnstile: it often passes by itself, sometimes it asks to tick a box.

### They press Verify

They get the roles and see **Verification complete** with the **Open the server on Discord** button.

If something goes wrong, the page says so:

| Message | Meaning |
|---|---|
| You're already verified in this server. | They already have all the roles |
| This account isn't in the server. | They logged in with another account: they can use **Switch account** |
| Accept the server rules on Discord first, then try again. | The server uses Discord's membership screening and they haven't completed it yet |
| MayaBot can't give roles in this server. Let the server staff know. | MayaBot is missing **Manage Roles**, or the roles are above its own |
| Verification isn't enabled in this server. | The module is off or there are no valid roles |
| Anti-bot check failed. Try again. | The check expired or didn't succeed |
| The anti-bot check didn't load. | An extension or the network is blocking Cloudflare |
| Too many attempts. Try again in a few seconds. | They tried too many times in a row |

If the link isn't valid, the server doesn't use Verification or MayaBot is no longer in the server, the page sends them to `mayabot.eu`.

MayaBot doesn't store who has verified. In the Discord audit log the role addition appears with the reason "MayaBot verification", in the [server language](https://docs.mayabot.eu/getting-started/server-language).

## Roles

The [role rules](https://docs.mayabot.eu/getting-started/how-modules-work#choosing-roles) apply. A chosen role that meanwhile can no longer be given is skipped.

> **Roles with high permissions**
>
> The dashboard doesn't stop you choosing roles with permissions such as **Administrator**, if you can give them on Discord. Anyone who passes verification gets them: only choose roles meant for all members.

## Permissions

| MayaBot's permission | Where | Why |
|---|---|---|
| **View Channel**, **Send Messages** | Message channel | Publishing the message |
| **Embed Links** | Message channel | Only with the Embed (v1) format |
| **Manage Roles** | Server | Giving the roles |
| MayaBot's role above the roles to give | Role settings | Discord doesn't allow giving roles higher than your own |

## Turning off and resetting

- **Off**: the message stays on Discord, but the page says verification isn't enabled and nobody gets roles.
- **Reset**: deletes the saved message, button and roles, and MayaBot removes the message from the channel. If it can't, the notification asks you to delete it yourself.

## Common problems

| Problem | Fix |
|---|---|
| Members see "MayaBot can't give roles" | Give MayaBot **Manage Roles** and move its role above the ones to give |
| The message has disappeared from the channel | Use **Publish again** |
| An embed isn't published | **Embed Links** is missing in the channel. Give it to MayaBot or use another format |
| **Save** doesn't work in Embed (v2) | Add a button with **Use the verification link** |
| A role isn't in the list | It's above MayaBot's role or above yours |
| **You published a moment ago: use Publish again in a few seconds.** | Wait a few seconds |
| The button leads to mayabot.eu | Verification has been reset or MayaBot is no longer in the server |
