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

# Integrate Discord with Memberful

> Integrate Memberful with Discord to run a members-only community. Paid members are invited automatically and removed when their subscription ends.

export const RelatedDocs = ({link1, link2, link3, link4, link5, link6, link7, link8, link9, link10, className = ""}) => {
  const links = [link1, link2, link3, link4, link5, link6, link7, link8, link9, link10].filter(Boolean);
  if (!links.length) return null;
  return <section className={`related-docs border dark:border-gray-700 rounded-2xl px-6 py-4 mt-6 ${className}`}>
      <p className="mb-2 font-medium">
        <strong>Related help docs:</strong>
      </p>
      <ul className="space-y-1 mb-1 mt-1">
        {links.map((link, index) => <li key={index}>
            <a href={link.url}>{link.label}</a>
          </li>)}
      </ul>
    </section>;
};

In this help article, we'll walk you through the steps to integrate your Discord server with Memberful.

## Connect to your Discord server

Go to *Content → Community* from your Memberful dashboard, and activate the Discord integration.

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/discord-connect.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=63bda8b459d6311a77ec59ea3a43f7b0" alt="Discord auth" width="1440" height="538" data-path="images/integrations/community/discord-integrate/discord-connect.png" />
</Frame>

Select your server from the dropdown and click **Continue.** If you don't see your server you may be signed into Discord as a user that does not have admin access. If that's the case, sign out of Discord and sign in as the admin, and then follow the **Activate** link again.

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/discord-add-bot.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=1c891b07ba19a79630df08f6a0044581" alt="Discord auth" width="1440" height="823" data-path="images/integrations/community/discord-integrate/discord-add-bot.png" />
</Frame>

After selecting your server, you have to grant permissions for the bot. We ask for the following:

* Manage Roles
* Kick Members
* Create Invite

<Callout icon="triangle-alert" color="#FFE044">
  Refusing to grant any of these permissions will cause your integration to malfunction.
</Callout>

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/discord-set-bot-permissions.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=557a046bfa40ec6a43ec5418028cef23" alt="Discord permissions" width="1440" height="821" data-path="images/integrations/community/discord-integrate/discord-set-bot-permissions.png" />
</Frame>

Once verified, click the **Authorize** button to connect. After a successful connection, you will be redirected to a configuration page within the Memberful dashboard.

## Configure Memberful's Discord settings

If you're not already there, go to *Content → Community → Discord,* and click the **Edit settings** button.

Configure the integration to determine who should be able to access your Discord server. (See options below.) Once you're done, click **Update settings.**

<Frame>
  <img src="https://mintcdn.com/memberful/ocS4kVVhxqBT0Hnr/images/integrations/community/discord-integrate/discord-roles-assigned.png?fit=max&auto=format&n=ocS4kVVhxqBT0Hnr&q=85&s=7882f516909ee49012a45f7eafb70637" alt="Discord roles assigned" width="1440" height="921" data-path="images/integrations/community/discord-integrate/discord-roles-assigned.png" />
</Frame>

### Associate Discord roles with Memberful plans

When a member subscribes to a plan, Memberful can assign them a Discord role based on their membership status. You can leverage [Discord roles](https://support.discord.com/hc/en-us/articles/206029707-Setting-Up-Permissions-FA) to set up [role-exclusive channels](https://support.discord.com/hc/en-us/articles/206143877-How-do-I-set-up-a-Role-Exclusive-channel-) in your Discord server.

Each plan can have:

* An **Active role** for members with an active paid subscription.
* A **Trial role** for members currently in a trial period.

<Frame>
  <img src="https://mintcdn.com/memberful/ocS4kVVhxqBT0Hnr/images/integrations/community/discord-integrate/discord-all-members-or-active-only.png?fit=max&auto=format&n=ocS4kVVhxqBT0Hnr&q=85&s=c58f720dc36ae152b1241035aebf5390" alt="Discord configuration" width="1440" height="921" data-path="images/integrations/community/discord-integrate/discord-all-members-or-active-only.png" />
</Frame>

By default, trial members receive the same Discord role as active members. If you want trial members to have different Discord access, choose a separate role from the **Trial role** dropdown.

For example, you may want active members to receive a role with full access to your Discord server, while trial members receive a limited-access role. If you leave the **Trial role** set to the same role as the **Active role**, trial members will have the same Discord access as active paid members.

<Callout icon="triangle-alert" color="#FFE044">
  Any Discord roles mapped to a plan may be removed from existing Discord users who previously had that role, unless their current membership status qualifies them for that role.
</Callout>

### All members

This setting will allow *all* members to join your server (active, inactive, or free). We can assign paying members exclusive roles (see above) and remove those roles if their subscription lapses. They will not be removed from the server even if their subscription lapses.

### Members with an active subscription

This setting will only allow active members in your server. They will be removed from the server if their subscription lapses.

Once you're done, click **Update settings.**

<Callout icon="info" color="#22E273">
  Once you enable our Discord integration, you may notice that the **Memberful bot appears offline.** This is normal and expected.
</Callout>

## Invite members to join your server

By default, we will show your new members a page after purchase with an invite to join your server. When they click the button, they'll be prompted to authorize the Memberful Discord bot. [Learn more about the member experience.](/community/discord/discord-member-experience/)

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/join-our-discord-server.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=8d285f6db40022c9acabb22005dd9714" alt="Authorize the Memberful Discord bot after checkout" width="1440" height="699" data-path="images/integrations/community/discord-integrate/join-our-discord-server.png" />
</Frame>

You can enable or disable this post-purchase invitation page in your plan settings.

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/redirect-to-benefits-and-content.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=c6e1834d49670f56f7ecda9fb484c266" alt="Set plan redirect settings to show benefits and content after checkout" width="1440" height="668" data-path="images/integrations/community/discord-integrate/redirect-to-benefits-and-content.png" />
</Frame>

Additionally, our purchase receipts also include a button for your members to authorize the Memberful Discord bot and join your Discord server.

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/purchase-receipt-discord-button.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=4f7cd50d7e811c4acaaa214c6937ef3a" alt="Discord button in purchase receipt" width="1440" height="1208" data-path="images/integrations/community/discord-integrate/purchase-receipt-discord-button.png" />
</Frame>

You also may choose to send a separate email inviting members to join the Discord server. To enable this, visit your [email template settings](/configuration/emails/email-templates/) and enable sending the Discord invite email. This is optional, but it can give you additional certainty that your members will know how to join your server.

<Frame>
  <img src="https://mintcdn.com/memberful/8cnaMPD_oPIjL0By/images/integrations/community/discord-integrate/discord-invite.png?fit=max&auto=format&n=8cnaMPD_oPIjL0By&q=85&s=1e22018fd6ea4fceb7966ca18e32254f" alt="Discord invite" width="1440" height="1062" data-path="images/integrations/community/discord-integrate/discord-invite.png" />
</Frame>

<Callout icon="triangle-alert" color="#FFE044">
  Authorizing the Memberful bot is a required step. Without this step, the member will not get the correct access and / or role on your server.
</Callout>

<RelatedDocs
  link1={{
url: "/community/discord/discord-post-setup/",
label: "Review Discord post-setup and troubleshooting tips.",
}}
  link2={{
url: "/community/discord/discord-member-experience/",
label: "Learn more about the Discord member experience.",
}}
/>
