Take a look around.
Discord bots / Part 4 of 6

Discord membership access: Patreon’s workflow and RoleHarbor

By Lan T.4 min read

A membership bot connects an eligible account to the right Discord roles and channels. Patreon provides a well-known tier-to-role example. RoleHarbor is my own end-to-end system for one business, bringing together a ReactJS member app, staff tools, Stripe billing and recoverable Discord access.

Illustrative completed membership workflow showing Payment confirmed, Membership active, Role applied and Access verified, all with success indicators.
Illustrative completed journey: payment confirmed, membership active, role applied and access verified. Pending delivery is a separate state, not a completed outcome.Open the full image ↗
Reference case

Patreon: membership tiers become Discord roles

Patreon lets creators connect membership tiers to roles in their Discord server. Members link their accounts, and the integration manages roles according to membership eligibility. The setup guide includes role hierarchy and troubleshooting requirements.

This connects a familiar member journey: join a creator’s membership, connect Discord and enter the channels included with that tier. A change in eligibility also has to reach the server, rather than leave the old access in place.

Explain the journey from the member’s point of view

The member needs to know which account is connected, what their membership includes and whether the access update has finished. A payment confirmation should not send them searching through channels to work out the next step.

If a member has several active packages, a cancellation or refund may change only part of their access. Decide the entitlement from the complete membership record before applying a role change.

Payment, membership and role delivery have different states

Receiving a billing event can update the membership record and create a role-delivery job. The external operation may still be waiting. Keep that visible until the result has been checked.

Observed stateUseful message
Membership active; role job unfinishedAccess update pending
Role applied and checkedAccess verified
Bot cannot manage the target roleServer configuration needs attention
Membership expired; removal unfinishedAccess removal pending
BeeMVP project

RoleHarbor: the end-to-end work I built

I built RoleHarbor’s ReactJS member catalogue and staff workspace, Hono services, authentication, billing and SQL data layer. The hosted application runs on Cloudflare Workers, uses PostgreSQL through Hyperdrive and processes delivery work through queues and scheduled recovery. The source also supports MySQL through an adapter.

Owners configure the business and its Stripe and Discord connections, map packages to roles and choose the rooms those roles can open. One-time, recurring and lifetime packages have their own access rules. Staff can inspect member records, billing history and failed work without treating a successful payment as proof that Discord access was delivered.

The hosted system serves one business and one Discord server. Its public demo uses Stripe test mode. This is my BeeMVP project; Patreon’s integration above is an independent reference case.

The staff demo now provides shared Owner, Administrator and Viewer sign-ins. Choose a role on the login page to fill in the form. Shared accounts cannot change staff, password or MFA settings; private staff accounts retain those controls. An Owner can restore default Stripe test and Discord connections without deleting members, payments or plans.

Give staff a controlled way to recover access

A temporary provider limit, a disconnected account and a missing permission need different responses. Respect the returned retry instructions for a temporary limit. For a permission problem, tell the operator which configuration needs attention.

A retry should use the current membership decision. Older work must not restore access that a later change has removed. Keep enough operation history to explain the result without filling routine logs with private customer details.

In RoleHarbor, a cancellation at period end keeps the member’s paid access until that period ends. A refund or expiry is evaluated against the full set of valid packages before managed roles change. Expiry reminders use private DMs or billing email, rather than posting personal details in a shared channel.

  • Show the desired access and the latest observed role state.
  • Record which event or staff action created the work.
  • Make duplicate events safe to handle.
  • Recheck the result before displaying a completed state.
Explore the working system

Try RoleHarbor for yourself.

RoleHarbor serves one business and one Discord server. Try the member journey or sign in as Owner, Administrator or Viewer. The demo uses Stripe test mode; no real charges are collected. Discord uses the configured demo server.

How to sign in and restore the connections
  1. Open the staff demo. The sign-in page lists the three available accounts.
  2. Choose Owner, Administrator or Viewer to fill in the email and password. Start with Viewer if you want to look around.
  3. Select Sign in. Use the workspace navigation to explore members, plans, billing and operations.
Owner
demo.owner@beemvp.comBusiness and provider settings, package-to-role mapping, room access and membership operations.
Administrator
demo.admin@beemvp.comDay-to-day membership operations, packages, billing and eligible failed-work retries.
Viewer
demo.viewer@beemvp.comRead-only access to the workspace. Changes are refused by the server.

Shared password: RoleHarbor@Demo

These public accounts keep fixed sign-in details. They cannot change staff accounts, passwords or MFA. Private staff accounts retain the full team and security controls.

Restore the default connections

Sign in as Owner, open Connections and choose Reset demo. Enter the shared password, then select Restore default connections.

This restores the saved Stripe test keys and Discord connection settings. It keeps members, payments, plans and activity. It does not undo Discord room changes, reverse payments or reset the whole workspace.

This is a shared workspace, so other visitors may change its records. Use test information when trying an editable role.

Further reading & related work

Product examples and references for the decisions in this note.

Have a similar piece of work?

How should membership become access in your product?

Tell me what you’re working on ↗

Keep reading