Skip to main content

Role Mapping Basics

Role mapping tells PayBru which Discord role to assign for each membership tier. When a fan subscribes, PayBru looks up the mapping and grants the corresponding role instantly.

How It Works

PayBru TierDiscord RoleAccess
Free Follower@FollowerPublic channels only
Supporter (R49/mo)@SupporterSupporter-only channels
VIP (R149/mo)@VIPAll exclusive channels

You define these mappings yourself - there are no fixed names. PayBru simply pairs each tier to the Discord role you choose.

The TierRoleMapping Entity

Behind the scenes, each mapping is stored as a TierRoleMapping record with the following fields:

FieldDescription
CommunityTierIdThe PayBru membership tier being mapped.
DiscordRoleIdThe Discord role to assign.
DiscordServerIdThe Discord server (guild) where the role lives.
IsActiveWhether this mapping is currently active.
PriorityDetermines which mapping takes precedence when multiple mappings exist. Lower numbers = higher priority.
RemoveOnTierLossControls whether the role is removed when a member loses this tier. Defaults to true.

Creating a Role Mapping

  1. Go to Creator Dashboard > Settings > Integrations > Discord.
  2. Under Role Mappings, click Add Mapping.
  3. Select a PayBru Tier from the first dropdown.
  4. Select the Discord Role from the second dropdown. Only roles that sit below the PayBru bot role in the hierarchy will appear.
  5. Set the Priority if you have multiple mappings (lower number = higher priority).
  6. Choose whether to enable Remove on Tier Loss (on by default - see below).
  7. Click Save.

Repeat for every tier you want to link.

tip

Create the Discord roles in your server before you set up mappings. PayBru does not create roles for you - it only assigns existing ones.

Remove on Tier Loss vs. Sticky Roles

The RemoveOnTierLoss flag controls what happens when a member no longer qualifies for a tier:

  • RemoveOnTierLoss = true (default): The Discord role is removed when the member loses the tier. This is the standard behavior for most membership roles.
  • RemoveOnTierLoss = false ("sticky" role): The Discord role persists even after the member loses the tier. Use this for rewards you want members to keep permanently - for example, a "Founding Member" badge or an "Early Supporter" role.
Sticky Roles

Sticky roles are useful for one-time recognition. Once assigned, they stay on the member regardless of future subscription changes. To remove a sticky role, you must do so manually in Discord or deactivate the mapping.

Priority

When a member qualifies for multiple mappings, the Priority field determines which mapping is applied first. Lower numbers take precedence. This is helpful when you have overlapping tiers or want to ensure a specific role is always assigned before others.

One Tier, One Role

Each PayBru tier maps to exactly one Discord role per mapping. If a member upgrades from Supporter to VIP, PayBru removes the Supporter role (if RemoveOnTierLoss is enabled) and adds the VIP role automatically.

info

If you want a member to keep lower-tier roles when they upgrade (cumulative access), set RemoveOnTierLoss = false on the lower-tier mapping. Alternatively, configure your Discord channel permissions so higher roles inherit access to lower-tier channels.

Editing or Removing Mappings

  • To edit a mapping, click the pencil icon next to it, change the tier, role, priority, or RemoveOnTierLoss setting, and save.
  • To remove a mapping, click the trash icon. Members who already have that role will keep it until the next sync cycle (every 5 minutes) or until you manually revoke it.

Verifying Your Setup

After saving your mappings:

  1. Ask a test member to subscribe (or use a secondary account).
  2. Confirm the correct Discord role appears within a few seconds.
  3. Check that the member can see the channels tied to that role.

If roles are not being assigned, see Common Discord Sync Issues.