How to Connect Discord to UniLink (Gate Content and Sell Server Access)

How to Connect Discord to UniLink (Gate Content and Sell Server Access)
A step-by-step guide to connecting your Discord server to UniLink so buyers are automatically added to your server with the correct role the moment their payment goes through.
- Connect via Dashboard → Integrations → Discord → Connect → authorize via Discord OAuth → select server → configure role assignment on purchase → save.
- After purchase, buyers are automatically added to your Discord server and assigned the role you specify — no manual invites or DMs required.
- Works with both one-time purchases and subscription products — recurring subscribers stay in the server as long as their subscription is active.
Discord has become the preferred infrastructure for paid communities — it's real-time, familiar to most online audiences, and the role system makes access control straightforward. The problem is always delivery: someone pays, you see the payment notification, you manually send an invite link, they join, you manually assign the role. That process is fine for ten members but breaks down at scale, and even at small scale it means every purchase requires your attention within a reasonable time window. The UniLink Discord integration collapses that entire sequence to zero manual steps — payment goes through, buyer is in the server with the right role, and you only know it happened because you have a new community member.
What the Discord Integration Does
UniLink's Discord integration connects to your Discord server via OAuth and uses Discord's bot permissions to manage server membership and role assignment on your behalf. When you complete the OAuth flow, UniLink's bot is added to your server with the minimum permissions required: invite users and manage roles. The bot does not read messages, post content, or perform any action beyond membership and role management triggered by UniLink purchase events. You retain full administrative control of the server; the bot only acts when a purchase event tells it to.
When a buyer completes a purchase of a product connected to the Discord integration, UniLink's system sends the buyer an invite link to your Discord server (via the post-purchase confirmation page or email), and simultaneously informs the Discord bot to assign the configured role to that user upon joining. The buyer clicks the invite, joins the server, and the role is applied automatically. For subscription products, the role remains assigned for as long as the subscription is active. When a subscription is cancelled or a payment fails, UniLink notifies the Discord bot to remove the role — or optionally remove the member from the server entirely, depending on how you configure the access-revocation behavior.
The role configuration step is where you define what access a buyer gets. In your Discord server, you'll have created roles with specific channel permissions — for example, a "Member" role that can see and write in your community channels, versus the default @everyone role that can only see a welcome channel. In UniLink's integration settings, you map your paid product to a specific Discord role. Buyers of that product get that role upon joining. If you offer multiple membership tiers — a standard tier and a premium tier — you can connect different UniLink products to different Discord roles, and each buyer tier gets appropriate channel access automatically.
How to Get Started
- Prepare your Discord server: In your Discord server, create the role(s) you want to assign to paid members — for example, "Community Member" or "Premium Access." Configure those roles' permissions to access the channels your paid community uses. Make sure the UniLink bot role (which will be added in the next steps) is positioned above the roles it will assign in your server's role hierarchy.
- Open UniLink Integrations: Log in to your UniLink Dashboard at app.unilink.us, navigate to Integrations, and find Discord. Click Connect.
- Authorize UniLink's Discord bot: A Discord authorization window will open. Select the server you want to connect from the dropdown (you must be the server owner or have administrator permissions). Grant UniLink the requested permissions — create instant invite, manage roles — and click Authorize. UniLink's bot will appear in your server's Member list and Integrations settings.
- Select server and configure role assignment: Back in UniLink's Integrations panel, select the Discord server you just connected. Then choose the product on your UniLink page that should grant Discord access, and map it to the Discord role buyers should receive. If you have multiple products at different tiers, configure each product-to-role mapping separately.
- Configure access revocation and save: Decide what happens when a subscription is cancelled — remove the role only (buyer stays in server but loses channel access) or remove from server entirely. Choose based on your community norms. Save the integration settings. Make a test purchase with a Discord account you control to verify the invite is sent, the role is assigned on join, and the access level is correct.
How to Use the Discord Integration
- Sell a paid community membership: Add a product block to your UniLink page — "Join the Community — $19/mo" or similar. Connect it to the Discord integration with the appropriate member role. Buyers who complete checkout receive a Discord server invite and land in your community with the right access immediately.
- Offer tiered access levels: Create multiple products on UniLink — Standard ($15/mo) and Premium ($49/mo) — each mapped to a different Discord role (Member vs. VIP). Standard members access community channels; VIP members also access a private VIP channel with exclusive content. The role assignment handles the tier separation automatically.
- Sell a course with a Discord community add-on: Connect a course product on UniLink to both the Course block (content delivery) and the Discord integration (community access). Buyers of the course get the learning content and automatic Discord community membership in one purchase. Community reinforces learning and increases the perceived value of the course.
- Run a time-limited Discord event or cohort: Create a fixed-term product (a 4-week cohort, for example) and connect it to a Discord role that gives access to a temporary cohort channel. Set the subscription to cancel after four weeks. When the cohort ends, the roles are revoked automatically and the channel access closes without manual cleanup.
- Monitor new member activity after launch: After a promotion or social post drives a spike in purchases, watch your Discord server's member count and check that new members are appearing with the correct role. Compare against UniLink's order count for the same period — these numbers should match. Any discrepancy indicates an access delivery issue to investigate.
Key Settings
| Setting | What It Does | Recommended |
|---|---|---|
| Discord server selection | Specifies which Discord server UniLink's bot manages membership for | Connect only the server your paid community lives in; do not connect public servers or servers you don't own |
| Role assignment per product | Maps a UniLink product to a specific Discord role granted upon purchase | Create descriptive role names in Discord (Member, Premium, VIP) that reflect the tier — avoid generic names like Role1 that are hard to manage as the community grows |
| Bot role hierarchy position | Determines which roles the UniLink bot can assign — it can only assign roles lower than its own in the hierarchy | In Discord server settings, drag the UniLink bot's role above all the roles it needs to assign; if the bot role is below Member in the hierarchy, it cannot assign the Member role |
| Access revocation on cancellation | Controls what happens to a member's Discord access when their subscription ends or payment fails | Start with "remove role only" rather than "remove from server" — it's less aggressive and gives lapsed members a chance to re-subscribe while still seeing the server they're losing access to |
| Invite link delivery method | How buyers receive their Discord server invite after purchase | Include the invite link in both the post-purchase confirmation page and the confirmation email — buyers who miss one will catch the other |
Get the Most Out Of Discord
Design your Discord server channel structure around the tiers you sell before connecting the integration. A common structure: a public #welcome channel visible to everyone (including potential buyers who got a free invite), then gated channels visible only to paid roles — #community-chat, #resources, #announcements, and any special channels for higher tiers. Set up this structure and configure channel permissions per role in Discord before running any purchases through UniLink. Changing channel permissions after you have active members is possible but requires coordinating across an active community, which is harder than setting it up correctly at launch.
Use Discord's role color feature to visually distinguish tiers in your community. Assign different colors to different membership tiers — standard members in one color, premium in another. When members post in community channels, their username appears in their role color, which creates social visibility for tier differences. Premium members being visually distinguishable in chat is a subtle but effective retention and upgrade incentive — standard members see premium color labels and wonder what premium looks like.
Pair the Discord community with regular live sessions hosted in Discord's Stage Channel or voice channels. When you host a live Q&A, workshop, or community call in Discord, announce it in your UniLink page or email list as a benefit of membership. Buyers who are evaluating whether to purchase see that the community is active; existing members are reminded of the value they're getting. Live community activity reduces churn on subscription products more than almost any other tactic because it creates a habit loop around the community platform.
Set up a #new-members channel in Discord where the UniLink bot (or you) welcomes new buyers by name as they join. A personal welcome — even an automated one — signals that someone noticed the new member arrived. In Discord, you can configure a bot to post a welcome message when a member joins and receives a specific role. This welcome channel is often the first thing a new buyer reads in the community and sets the tone for their membership experience. A warm, specific welcome that acknowledges what they purchased increases the chance they engage beyond the first five minutes.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Buyer completes purchase but does not receive Discord invite | Post-purchase page or email template does not include the invite link variable, or integration is not connected to the purchased product | In UniLink's product settings, verify the Discord integration is enabled for that product. Check the post-purchase confirmation page and email template to confirm the Discord invite variable is included. |
| Buyer joins server but doesn't receive the correct role | UniLink bot's role is lower in the hierarchy than the role it's trying to assign, or role mapping was not saved correctly | In Discord server settings, move the UniLink bot's role above all the roles it needs to assign. In UniLink's integration settings, verify the product-to-role mapping is saved correctly. |
| UniLink bot was removed from the server | Server administrator accidentally kicked the bot, or the bot left after authorization was revoked | In UniLink Integrations → Discord, disconnect and reconnect by re-running the OAuth authorization flow. This re-adds the bot to the server with the required permissions. |
| Cancelled subscribers still have server access | Access revocation is disabled in the integration settings, or the bot lacks permissions to remove roles | Enable access revocation in UniLink Integrations → Discord settings. Verify the bot's role hierarchy position allows it to manage the member role. Test revocation manually using the test tools in UniLink's integration settings. |
- Fully automated access delivery — no manual invites, no role assignment, no DMs required
- Tiered access via role mapping supports multiple membership levels from a single Discord server
- Subscription revocation on cancellation or payment failure is automatic when enabled
- Works with both one-time purchases and recurring subscriptions on UniLink
- Requires a Discord server you own or administer — cannot connect to a server you don't control
- Bot role hierarchy must be manually configured in Discord for role assignment to work
- Discord invite links can expire — ensure UniLink generates fresh invites per buyer rather than reusing a static invite link
Frequently Asked Questions
Does my buyer need an existing Discord account to join the server?
Yes. Buyers need a Discord account to join a server. When they receive the invite link from UniLink after purchase, they'll need to either log in to their existing Discord account or create a new one before they can join. This is a Discord requirement, not a UniLink limitation. Most online audiences have Discord accounts, but for communities where your buyer base is less tech-familiar, it's worth noting in your product description that Discord is required.
Can I sell access to a server I don't own?
No. The UniLink Discord integration requires administrator permissions on the server to add the bot and manage roles. You must own or be an administrator of the server you're connecting. If you're co-running a community with another person, they would need to authorize the bot from an account with administrator access.
What happens if a buyer refunds their purchase?
If a purchase is refunded and the order is cancelled in UniLink, the Discord access revocation behavior configured in your integration settings applies — the role is removed or the member is removed from the server, depending on your setting. This is the same behavior as a subscription cancellation. The timing depends on how quickly the refund is processed in UniLink.
Can I connect multiple Discord servers to one UniLink account?
UniLink's Discord integration supports connecting the servers you need — configure each product to deliver access to the appropriate server. If you manage multiple communities across separate Discord servers, you can map different UniLink products to different servers. Contact UniLink support for guidance on multi-server configurations.
Is the Discord integration available on UniLink's free plan?
The Discord integration requires a paid UniLink plan — Starter ($9/mo) or above. Free plan users can view the integration in the Integrations panel but will need to upgrade to connect a server and configure role assignment. For high-volume community sales, the Pro ($19/mo) or Business ($49/mo) plan is recommended.
- Connect via Dashboard → Integrations → Discord → OAuth → select server → map product to role → configure revocation → save.
- The UniLink bot must be positioned above the roles it assigns in your Discord server's role hierarchy — this is the most common setup error.
- Test the full buyer flow with a Discord account you control before going live — purchase → invite → join → verify role assignment.
- Configure access revocation so cancelled subscriptions automatically remove role access or server membership.
- Tiered memberships work by mapping different UniLink products to different Discord roles — each tier gets appropriate channel access automatically.
Ready to sell Discord community access automatically? Connect Discord in your UniLink Dashboard and your next buyer will be in the server with the right role before you finish reading this sentence.
Create Your Free Link-in-Bio Page
Join thousands of creators using UniLink. 40+ blocks, analytics, e-commerce, and AI tools — all free.
Get Started Free