Home › Integrations › Referral Code Role
Grant Discord Roles via Redeemable Referral Codes
Generate codes, hand them out, and members redeem them for a Discord role. Make single-use, multi-use, or shared batches — with optional expiry, role timers, redemption caps, and a custom invite link.
What you can build with Referral Code Role
Real use cases that ship in production Discord servers using RoleLogic + redeemable codes.
Kickstarter and Patreon backer rewards
Generate one unique code per backer. Backers redeem to unlock their backer role and channels — no manual approval queue, no reward spreadsheet.
Event wristbands and QR codes
Print one-time codes on physical badges or QR-coded flyers. Attendees scan, redeem, and get the event role automatically. Set expiry to match the event date.
Podcast and creator shout-outs
Drop a code in your latest episode or video. Listeners who actually paid attention get a 'Listener' role, reusable up to your cap.
Time-limited access roles
Set a role timer and the role removes itself automatically — perfect for trial access, weekend events, or 24-hour beta windows. Cleanup runs every couple of minutes.
Cross-server invites with redirect
Attach a Discord invite link to the batch — the redemption page sends users straight to the right server before giving them the role.
Redeem first, join later
If a member redeems before joining the Discord server, RoleLogic remembers and grants the role the moment they join. No second redemption, no follow-up DMs.
How Referral Code Role works
From install to live redeemable codes roles in a few minutes.
Create a batch
Pick the batch style: one-time codes, reusable codes (each user redeems once), or shared codes (one code, many users). Set max redemptions, per-code limit, expiry, and an optional role timer.
Hand out the codes
Send them by email, QR code, podcast script, livestream overlay, or anywhere else. Every redemption page has a stable link you can share or turn into a QR code.
Members redeem, role lands
Members sign in with Discord, enter the code, and the role is given out — even if they haven't joined the server yet. RoleLogic remembers and grants it the moment they join.
Frequently asked questions
Common questions about Referral Code Role and RoleLogic.
What batch types are supported?
Three: one-time codes (each code is single-use), reusable codes (each user redeems once, code itself can be used by many up to a limit), and shared codes (one code, unlimited users until the batch cap or expiry).
Can codes expire?
Yes. Set a batch expiry date, a max-redemption limit, or both. You can also set a role timer in hours so the role removes itself after a window.
How big can a batch be?
RoleLogic supports 100,000+ members per role, so practical limits are very high. Real-world communities use everything from a few dozen codes to hundreds of thousands.
What if a member redeems before joining the Discord server?
RoleLogic remembers and gives them the role the moment they join the server — no second redemption needed, no DM follow-ups.
Is there abuse protection?
Yes — built-in rate limits (default 20 redeem attempts per hour per user), per-code limits, and batch expiry. You can also lock a batch to a specific Discord server.
Other Discord role integrations
More ways to automate Discord roles with RoleLogic.
Top.gg Voter Role
Auto-reward Top.gg voters with Discord roles that expire on a configurable timer (1 hour to 7 days).
YouTube Subscriber Role
Auto-assign Discord roles to verified YouTube subscribers with one-click Google OAuth.
Twitch Follower Role
Real-time Discord roles for Twitch followers and Tier 1 / Tier 2 / Tier 3 subscribers via EventSub.
Ship Referral Code Role in 5 minutes
Free plan, no coding, real-time sync. Used by Discord servers of every size — from indie communities to verified gaming servers with hundreds of thousands of members.
Set up Referral Code Role