Custom Roles

Allow members to create and personalize their own roles with custom names, colors, icons, and even share them with others.

Features

Custom Names

Let members create roles with their own custom names.

  • Up to 30 characters
  • Update anytime
  • One custom role per member
  • Automatic role positioning

Advanced Colors

Multiple color options for ultimate customization.

  • Solid Colors: Hex codes or color names
  • Gradients: Two-color gradients (requires Enhanced Role Colors)
  • Holographic: Animated holographic effect (requires Enhanced Role Colors)
  • 20+ preset color names supported

Role Icons

Add icons to custom roles for extra personalization.

  • Unicode emojis (all standard emojis)
  • Custom server emojis
  • Direct image URLs
  • Requires server Level 2 (Tier 2) or higher

Role Sharing

Share your custom role with other members.

  • Permission-based sharing system
  • Recipients must allow sharing first
  • One shared role per recipient
  • Can be enabled/disabled by admin

Commands

/customrole config (Admin Only)

Configure the custom role system for your server.

Required Parameters:

  • Required Role: Role users need to create custom roles (e.g., Booster, Premium)
  • Base Role: Custom roles will be positioned above this role
  • Allow Share: Enable/disable role sharing feature

Example: Set required role to "Nitro Booster", base role to "@everyone", and enable sharing.

/customrole disable (Admin Only)

Disable the custom role system. Existing custom roles remain but can no longer be modified.

/customrole name

Create or update your custom role name.

  • Creates new role if you don't have one
  • Updates existing role name if you do
  • Max 30 characters
  • Replaces any shared role you have

/customrole color_solid

Set a solid color for your custom role.

  • Hex codes (e.g., #FF5733 or FF5733)
  • Color names (e.g., red, cyan, purple)
  • 20+ preset colors available

/customrole color_gradient

Set a two-color gradient for your custom role.

  • Requires server to have Enhanced Role Colors perk
  • Specify start and end colors (hex or name)
  • Creates smooth color transitions

/customrole color_holographic

Apply animated holographic effect to your custom role.

  • Requires server to have Enhanced Role Colors perk
  • No parameters needed
  • Creates animated rainbow effect

/customrole icon

Set an icon for your custom role.

  • Requires server Level 2 (Tier 2) or higher
  • Unicode emojis: Just enter the emoji
  • Server emojis: Use Discord emoji format
  • URLs: Enter direct image URL
  • Leave blank to remove icon

/customrole allow

Allow another member to share their custom role with you.

  • For members WITHOUT the required role
  • They must use /customrole share to complete
  • You can only have one shared role at a time
  • Requires sharing to be enabled by admin

/customrole share

Share your custom role with someone who allowed you.

  • Requires the required role
  • Target must have used /customrole allow first
  • They cannot have their own custom role
  • Requires sharing to be enabled by admin

/customrole clear

Delete your custom role or remove a shared role.

  • Permanently deletes your custom role from server
  • OR removes a shared role you received
  • Cannot be undone

Setup Guide

1. Admin Configuration

Run /customrole config as admin:

  • Set required role (e.g., "Server Booster")
  • Choose base role for positioning
  • Enable/disable role sharing

2. Create Custom Role

Members with the required role run /customrole name and enter their desired role name (max 30 characters).

3. Customize Colors & Icons

Use /customrole color_solid, color_gradient, or color_holographic for colors. Add icons with /customrole icon.

4. Share Roles (Optional)

If sharing is enabled, non-eligible members can use /customrole allow, then eligible members can share their roles with /customrole share.

How It Works

Role Creation & Positioning

When a custom role is created, it's positioned directly above the configured base role using Discord's API. This ensures all custom roles stay in a specific section of the role hierarchy.

Database Storage

Custom roles are stored in MongoDB with member ID, guild ID, and role ID. Shared roles are tracked separately to distinguish between owned and borrowed roles.

Permission System

The bot verifies the required role before allowing any customization. Role icons and advanced colors check for server boosting level and features before applying changes.

Sharing Mechanism

Role sharing uses a two-step process: the recipient grants permission via /customrole allow, storing this in memory. The owner then uses /customrole share to complete the share, which checks permissions and assigns the role.

Common Use Cases

Booster Perks

Reward server boosters with personalized roles as a thank you for supporting your server.

VIP/Premium Members

Give premium members or Patreon supporters custom role privileges for extra perks.

Contest Winners

Award contest winners with custom roles as prizes that they can fully personalize.

Role Rentals

Sell custom role access for a set period as a server monetization strategy.

Team/Clan Tags

Allow team leaders to create custom roles that they can share with team members.

Self-Expression

Let members express their personality with unique role names, colors, and icons.

FAQ

Can I have both a custom role and a shared role?

No, if you create your own custom role, any shared role you had will be removed. You can only have one or the other, not both.

What happens if I lose the required role?

Your custom role will remain, but you won't be able to modify it until you regain the required role.

Can multiple people share the same role?

Yes! A role owner can share their role with multiple members. All recipients will have the same role.

What are the server requirements for gradient and holographic colors?

Your server needs the "Enhanced Role Colors" feature, which is a Discord experiment feature not tied to boosting level.

What happens if I delete my custom role manually?

The bot's database entry will remain. You should use /customrole clear to properly remove the role and clean up the database.