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

# Discord Memberships

> Include access to your exclusive community with every sale

Use the MoonPay Commerce Discord bot to include & assign roles/memberships to your exclusive community with every Helio sale (i.e. receive payment -> assign role). Roles are also auto-removed when subscriptions expire if you use [subscriptions](/docs/subscriptions#/).

# Enable Developer Mode

Before proceeding, please enable developer mode for Discord. This will allow you to see the server, role and user IDs required to setup the Discord bot. See [this Discord article on how to achieve this](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID) .

# Channel & Role Setup

Log in to the [dashboard](https://app.hel.io/dashboard), select **"Settings" -> "Integrations"**.

Hit **"Authenticate"** to allow the MoonPay Commerce bot to be installed via Discord. This authentication will use your Discord administrator credentials in your default browser to approve the installation of the bot for the required server as follows:

<Frame caption="Authorise the bot">
  <img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/b6f5d698725498fefe05f8863b746f12c5ac5b0641ad68d078f88ab185522149-Screenshot_2025-04-14_at_16.15.12.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=b8346b99df26f3576f3ec9178b0917bd" alt="" width="1626" height="944" data-path="images/docs/b6f5d698725498fefe05f8863b746f12c5ac5b0641ad68d078f88ab185522149-Screenshot_2025-04-14_at_16.15.12.png" />
</Frame>

Head back to Settings in the dashboard and you will notice the Discord section has changed to allow you to enter the relevant IDs. Choose your Server ID and one or more Role IDs and hit "Save Settings".

<Frame caption="Add your server and role IDs">
  <img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/b12931ca4dd26db4e1913a0cfec1101d0eeb368e8fd54077ae1d93b46d002fc7-Screenshot_2025-12-02_at_10.25.20.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=31030f888815551c617d77780fb3ae01" alt="" width="3018" height="1708" data-path="images/docs/b12931ca4dd26db4e1913a0cfec1101d0eeb368e8fd54077ae1d93b46d002fc7-Screenshot_2025-12-02_at_10.25.20.png" />
</Frame>

# Finalise Discord Setup

Return to **"Server Settings" -> "Roles"** and you should now see the **"MoonPay Commerce"** role appear:

<Frame caption="Check to see if &#x22;MoonPay Commerce&#x22; is on the roles">
  <img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/f718ea0a1c78ee6697deaa59d6708518d74d1aa2cf981113ef6e9dcb65e78495-image_9.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=08cc39e4b6d9335183aa2e79dbd62da7" alt="" width="1013" height="465" data-path="images/docs/f718ea0a1c78ee6697deaa59d6708518d74d1aa2cf981113ef6e9dcb65e78495-image_9.png" />
</Frame>

Select **"MoonPay Commerce"** to see the following. This is the bot role and should NOT be changed. Note that you can remove the bot in **"Server Settings" -> "Integrations"** if required.

<Frame caption="MoonPay Commerce Bot Information">
  <img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/6ef6d30e9a26643e78f4a1a7b17ad171084aed626302c919fa307b2609458814-image_10.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=ff6ebcfcf1e617839aee2fe444a3f888" alt="" width="555" height="300" data-path="images/docs/6ef6d30e9a26643e78f4a1a7b17ad171084aed626302c919fa307b2609458814-image_10.png" />
</Frame>

<Warning>
  You MUST move the MoonPay Commerce bot above the roles that you want to assign due to Discord's role hierarchy logic. Drag the MoonPay Commerce role up above the "MoonPay Commerce Access" group as follows.
</Warning>

<Frame caption="Move MoonPay Commerce above the role you require the bot to change">
  <img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/682b0536d325c2acef09be5904d78a00ff0941cfdb323ec181f22a3efd47b616-image_11.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=f12426434366bf6bfba55639f6470773" alt="" width="781" height="482" data-path="images/docs/682b0536d325c2acef09be5904d78a00ff0941cfdb323ec181f22a3efd47b616-image_11.png" />
</Frame>

# Create a payment & assign the role members

* Click **CREATE PAYMENT** to set up your payment details and pricing options. Select a single payment for one-time access or a [subscription](/docs/subscriptions#/) access (the role will be removed at the end of the subscription period).
* Under **Advanced options -> Discord memberships**, load and select the roles you wish to assign. Users must sign in with Discord on the Pay Link. To make Discord optional, untick the **"require Discord login"** box, allowing it as an optional field.

<img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/0da7a8e630c4d32210312592e5ba25af8ee0ffc682d3738a04313e15fc455985-Screenshot_2025-12-02_at_10.27.28.jpg?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=4bd7dfee01dbb455083818675944e3c1" alt="" width="1920" height="1088" data-path="images/docs/0da7a8e630c4d32210312592e5ba25af8ee0ffc682d3738a04313e15fc455985-Screenshot_2025-12-02_at_10.27.28.jpg" />

# Membership Assigned Real-Time or Claimed Afterwards

Roles can be assigned in real-time or claimed later. Share the Pay Link anywhere. Buyers automatically receive the role if they’re in your server; otherwise, they can join and claim it later from the [MoonPay Commerce Buyer Dashboard](https://app.hel.io/dashboard?userType=BUYER). They'll receive email reminders to claim (untick "E-mail address" if you prefer not to collect or remind buyers). For subscriptions, claims remain valid until the subscription ends.

<img src="https://mintcdn.com/moonpay-commerce/qQmu63zyUpo0ecJa/images/docs/38e30e579793a6e606832f68e38360bca7b6dd0fa62773658a3007927b5cce56-Screenshot_2025-12-02_at_10.30.58.png?fit=max&auto=format&n=qQmu63zyUpo0ecJa&q=85&s=aab2039a0adc6746f266616defbcab11" alt="" width="3016" height="1710" data-path="images/docs/38e30e579793a6e606832f68e38360bca7b6dd0fa62773658a3007927b5cce56-Screenshot_2025-12-02_at_10.30.58.png" />
