> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macropay.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Automate Discord Invites & Roles

> Grant Discord invites and tier-based roles automatically when customers buy or subscribe

<img src="https://mintcdn.com/macrodeepinc/S4T0jM7ZWV5HVLft/assets/features/benefits/discord/hero.png?fit=max&auto=format&n=S4T0jM7ZWV5HVLft&q=85&s=25c4c2e48fee1346d1da55cc7cbacb8d" width="2400" height="1448" data-path="assets/features/benefits/discord/hero.png" />

Turn a purchase into a server invite. When a customer checks out, Macropay can drop them straight into your Discord with the right role attached — and pull access the moment a subscription lapses. No bots to babysit, no manual invite links, no spreadsheet of who paid for what.

This is delivered as a **benefit**: an entitlement you attach to any product. Because Macropay is the merchant of record on every sale, the same flow also remits sales tax/VAT worldwide and keeps that liability off your books — you just decide who gets which role.

## What you can do

* **Auto-invite** every buyer or subscriber into your server on payment
* **Map tiers to roles** — `Supporter` for the $5 plan, `Pro` for the $25 plan, `Lifetime` for one-time buyers
* **Connect more than one server** by creating multiple Discord benefits
* **Auto-revoke** when a subscription ends, so access tracks billing state automatically

## Connect your Discord server

<img className="block dark:hidden" src="https://mintcdn.com/macrodeepinc/S4T0jM7ZWV5HVLft/assets/features/benefits/discord/create.light.png?fit=max&auto=format&n=S4T0jM7ZWV5HVLft&q=85&s=22737285e11d7f9557d221468372322b" width="940" height="764" data-path="assets/features/benefits/discord/create.light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/macrodeepinc/S4T0jM7ZWV5HVLft/assets/features/benefits/discord/create.dark.png?fit=max&auto=format&n=S4T0jM7ZWV5HVLft&q=85&s=ef20cdd928ae392be222d6ab516dbd1f" width="940" height="764" data-path="assets/features/benefits/discord/create.dark.png" />

<Steps>
  <Step title="Authorize the Macropay app">
    Choose **Connect your Discord server**. You'll be sent to Discord to install the Macropay app on the server you want to manage.
  </Step>

  <Step title="Approve the permissions">
    Discord will ask you to grant the scopes the app needs. All three are required — see the table below for what each one does.
  </Step>

  <Step title="Pick the role to grant">
    Back in Macropay, select which role this benefit hands out. That's the role a customer receives the instant they buy.
  </Step>
</Steps>

### Permissions explained

| Permission        | Why Macropay needs it                                                                                                |
| ----------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Manage Roles**  | Reads your server's roles so you can choose which one to assign, then applies it to paying customers.                |
| **Create Invite** | Generates the invite that adds a buyer to your server when they purchase the product or subscribe to a tier.         |
| **Kick Members**  | Removes members tied to this benefit when their access should end — for example, a canceled or expired subscription. |

<Note>
  The connected server is fixed once a benefit is created. Need to manage a second community? Create another Discord benefit and authorize the additional server.
</Note>

## Attach the benefit to a product

Open the product you want gated and scroll to the benefits section of the **Edit Product** form. Toggle on your Discord benefit and save. From then on, anyone who completes checkout for that product is invited and assigned the role you chose.

<Tip>
  Tier your community with one benefit per role. Create a `Pro` benefit and a `Founder` benefit, attach each to the matching subscription, and customers automatically land in the right place — upgrades and downgrades follow their billing state.
</Tip>

## How it fits the rest of Macropay

Discord access is one of several entitlements you can bundle with a product. Mix and match it with other [benefits](/features/benefits/introduction) — [license keys](/features/benefits/license-keys), [file downloads](/features/benefits/file-downloads), or [GitHub repository access](/features/benefits/github-access) — on a single subscription. Membership, downloads, and source access all unlock from one checkout, and every order is tax-compliant out of the box because Macropay is the seller of record.
