Tutorial
min read

How to Set Up Discord Role Automation for IPTV Subscribers

Step-by-step tutorial on automating Discord role assignments for IPTV subscribers, including bot setup, role mapping, verification flows, and multi-server support.

IPTVbp TeamMarch 30, 2026Updated Invalid Date

Discord has become the community platform of choice for IPTV providers. It offers real-time communication, organized channels, and a sense of belonging that keeps customers engaged and loyal. But managing Discord roles manually — adding subscriber roles when customers purchase, removing them when subscriptions expire — becomes unsustainable as your customer base grows.

Discord role automation eliminates this operational burden entirely. When a customer purchases a subscription, they automatically receive the corresponding Discord role. When their subscription expires, the role is automatically removed. No manual intervention, no delays, no missed updates.

This tutorial walks you through setting up Discord role automation for your IPTV business from scratch, covering bot creation, role mapping, verification flows, multi-server support, and the IPTVbp Discord roles module.


Why Automate Discord Roles?

Before diving into the setup, consider what manual role management actually costs:

  • Time: With 500 subscribers, you might spend 30-60 minutes daily adding and removing roles. At 2,000 subscribers, it becomes a full-time task.
  • Errors: Manual processes inevitably lead to mistakes — giving roles to the wrong person, forgetting to remove expired roles, missing new purchases during off-hours.
  • Delays: Customers expect instant access after purchase. If they have to wait hours for someone to manually assign their role, the experience suffers.
  • Scalability: Manual processes create a hard ceiling on growth. Automation removes that ceiling entirely.
Automated role management runs 24/7, processes changes instantly, and scales to any number of subscribers without additional effort.

Step 1: Create Your Discord Bot

The foundation of role automation is a Discord bot that can manage roles on your server. Here is how to create one:

Create the Bot Application

  1. Go to the Discord Developer Portal.
  2. Click "New Application" and give it a name (e.g., "IPTVbp Billing Bot" or your brand name).
  3. Navigate to the "Bot" section in the left sidebar.
  4. Click "Add Bot" and confirm.
  5. Under the bot settings, copy the Bot Token — you will need this to connect the bot to your billing platform. Keep this token secret; anyone with it can control your bot.

Configure Bot Permissions

Your bot needs specific permissions to manage roles:

  • Manage Roles — Required to assign and remove roles from members.
  • View Channels — Required to see channel structures.
  • Send Messages — Required for verification prompts and notifications.
  • Manage Messages — Useful for cleaning up verification channels.
  • Add Reactions — Useful for reaction-based verification flows.
  • Read Message History — Required for processing commands and reactions.
  • Use External Emojis — Optional but nice for branded responses.
  • Manage Channels — Required if you want the bot to create private channels for subscribers.

Generate the Invite Link

Construct an invite URL with the required permissions. The permission integer that covers all the above is 268823632. Your invite URL will follow this format:

https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=268823632&scope=bot

Replace YOUR_CLIENT_ID with your application's client ID (found on the General Information page of your Discord application).

Invite the Bot to Your Server

Open the invite URL in your browser, select your Discord server, and authorize the bot. You should see it appear in your server's member list.

Important: After the bot joins, go to your server settings → Roles and drag the bot's role above all the roles it needs to manage. Discord bots can only manage roles that are positioned below their own role in the hierarchy.

Step 2: Set Up Your Discord Server Structure

Before configuring role automation, set up your server with a clear channel and role structure:

Create Subscriber Roles

Create roles that correspond to your subscription products:

  • Basic Subscriber — For your entry-level package.
  • Premium Subscriber — For your mid-tier package.
  • VIP Subscriber — For your top-tier package.
  • Trial User — For customers on a free trial.
You can also create roles for specific add-ons or features:
  • Sports Package — For customers who purchased the sports add-on.
  • VOD Access — For customers with video-on-demand enabled.
  • Multi-Room — For customers with multi-room subscriptions.

Create Channel Categories

Organize your channels so that subscriber roles unlock relevant content:

  • Public — Welcome, rules, announcements (visible to everyone).
  • Verification — A single channel where new members link their accounts (visible to everyone, controlled posting).
  • Subscribers Only — General chat, support, feature requests (visible only to subscriber roles).
  • Premium Lounge — Exclusive content for premium and VIP subscribers.
  • Reseller Area — Private channels for your resellers.
Set channel permissions so that each category is only visible to members with the appropriate roles.

Step 3: Map Roles to Products

Role mapping is the core of the automation — it defines which Discord role corresponds to which subscription product. This mapping tells the system: "When someone purchases Product X, give them Role Y."

In IPTVbp's Discord Roles Module

  1. Navigate to your vendor dashboard and open the Discord integration settings.
  2. Enter your bot token and connect it to your server.
  3. The module will automatically detect all roles in your Discord server.
  4. For each of your subscription products, select the corresponding Discord role from a dropdown.
  5. You can map multiple roles to a single product (e.g., a premium subscription gets both "Premium Subscriber" and "Subscribers Only" roles).
  6. You can also map a single role to multiple products (e.g., all subscription tiers get the base "Subscribers Only" role).

Mapping Strategy

A tiered mapping strategy works well for most IPTV providers:

ProductDiscord Roles Assigned
Basic PackageSubscriber
Premium PackageSubscriber, Premium
VIP PackageSubscriber, Premium, VIP
Sports Add-onSports Package
Free TrialTrial User

This way, higher-tier subscribers automatically get access to all lower-tier channels, and add-ons grant additional role-based access independently.


Step 4: Configure the Verification Flow

Verification is how customers link their billing account to their Discord account. Without this link, the system cannot know which Discord user corresponds to which customer.

Email-Based Verification

The most common verification flow:

  1. Customer joins your Discord server and navigates to the verification channel.
  2. They type a command (e.g., /verify) or click a button.
  3. The bot asks for their email address (the one used for their subscription).
  4. The bot looks up the email in your billing system and sends a verification code to that email.
  5. The customer enters the code in Discord.
  6. The bot links their Discord account to their billing account and assigns the appropriate roles.
This flow is secure because it requires access to the email associated with the subscription, preventing unauthorized users from claiming subscriber roles.

Account Linking via Dashboard

An alternative approach allows customers to link their Discord account from your billing portal:

  1. Customer logs into their account on your IPTVbp store.
  2. They navigate to a "Connect Discord" section in their account settings.
  3. They click a button that initiates Discord OAuth2 authorization.
  4. After authorizing, their Discord user ID is stored in your billing system.
  5. Roles are assigned automatically based on their active subscriptions.
This approach is smoother because it uses OAuth2 rather than manual code entry, but it requires the customer to visit your website rather than handling everything within Discord.

Step 5: Configure Auto-Removal on Expiry

Assigning roles on purchase is only half the equation. You also need to remove roles when subscriptions expire, are cancelled, or are suspended.

Event-Driven Removal

Configure the following behaviors:

  • Subscription expired → Remove all product-mapped roles. Optionally assign an "Expired" role that gives access to a limited channel where they can see renewal prompts.
  • Subscription cancelled (immediate) → Remove roles immediately if no remaining paid period.
  • Subscription cancelled (end of period) → Keep roles until the paid period ends, then remove.
  • Subscription suspended → Remove roles temporarily. Reassign when the suspension is lifted.
  • Payment failed → Optionally suspend roles after a grace period (e.g., 3 days) to allow for payment retry.

Grace Periods

Consider implementing a grace period before removing roles after payment failure. Immediate removal can frustrate customers who simply had a temporary payment issue. A 24-72 hour grace period gives them time to resolve the payment while maintaining their community access.


Step 6: Multi-Server Support

Some IPTV providers operate multiple Discord servers — perhaps one for general customers, one for resellers, and one for VIP subscribers. Multi-server role automation extends the same principles across multiple servers.

How It Works

  1. Invite your bot to all servers where you want role automation.
  2. In your role mapping configuration, specify which server each mapping applies to.
  3. The bot manages roles across all connected servers based on the same billing events.

Use Cases for Multi-Server

  • Geographic servers: Separate servers for English-speaking, Spanish-speaking, and Arabic-speaking customers, with roles managed based on language-specific product purchases.
  • Tier-based servers: A public community server for all customers and an exclusive server for VIP or high-value subscribers.
  • Reseller separation: A dedicated server for resellers with channels for each reseller tier, separate from your customer-facing server.

Step 7: Notifications and Messaging

Enhance the role automation with contextual messages:

Welcome Messages

When a customer successfully verifies and receives their subscriber role, send a personalized welcome message:

  • Thank them for their purchase.
  • Point them to relevant channels (setup help, channel lists, support).
  • Share any quick-start information they need.

Expiry Warnings

Before a subscription expires, send a DM or channel message reminding them to renew:

  • 7 days before expiry: "Your subscription expires in 7 days. Renew now to keep your access."
  • 1 day before expiry: "Your subscription expires tomorrow. Renew to avoid losing access to subscriber channels."

Role Change Notifications

When roles are added or removed, optionally log these actions in a private admin channel for audit purposes. This creates a record of all role changes and helps you debug any issues.


Troubleshooting Common Issues

Bot Cannot Assign Roles

  • Ensure the bot's role is positioned above the roles it needs to manage in the server's role hierarchy.
  • Verify the bot has the "Manage Roles" permission.
  • Check that the role is not managed by another integration (e.g., Twitch or YouTube integrations create roles that other bots cannot manage).

Roles Not Removed on Expiry

  • Verify your webhook or event listener is active and receiving expiry events.
  • Check that the customer's Discord account is still linked (they may have left and rejoined the server).
  • Review your grace period settings — the removal might be delayed intentionally.

Verification Not Working

  • Ensure the bot has permission to send DMs to server members (some users have DMs disabled from server members).
  • Check that the email lookup is matching correctly (case sensitivity, trailing spaces).
  • Verify the verification channel permissions allow the bot to read and send messages.

The Result: A Self-Managing Community

With Discord role automation fully configured, your community manages itself:

  • New customers verify and receive roles within seconds of purchase.
  • Expired customers lose access automatically, maintaining the exclusivity of subscriber channels.
  • Upgrades and downgrades are reflected instantly.
  • You spend zero time on manual role management, regardless of how many subscribers you have.
This automation transforms Discord from an operational burden into a powerful retention and engagement tool that runs on autopilot.

Related Articles

Discord
role automation
IPTV subscribers
Discord bot
community management
verification
tutorial
automation

Ready to Automate Your IPTV Billing?

Start your free trial and see how IPTVbp automates provisioning, payments, and customer management for your IPTV business.