Discord Integration
CryptoGated supports Discord servers alongside Telegram channels. Here's how to set it up and manage role-based access.
How It Works
Unlike Telegram (where the bot sends invite links), Discord uses role-based access control:
Gate with a Role
Create a role in your Discord server. Set private channels to only be visible to that role.
Subscriber Pays
When a subscriber pays for your channel, the CryptoGated bot assigns the role.
Subscription Expires
When the subscription ends, the bot removes the role. The subscriber loses access.
Setup Guide
Step 1: Invite the Bot
Get the bot invite link from the platform admin and add the CryptoGated Discord bot to your server. The bot needs the Manage Roles permission.
Step 2: Create a Gating Role
In your Discord server, create a role (e.g., "VIP Member" or "Premium Access"). This is the role the bot will assign to paying subscribers.
Important: Role Hierarchy
The CryptoGated bot's role must be above the gating role in the role hierarchy. Go to Server Settings → Roles and drag the bot's role above your gating role. If the bot's role is below, it won't be able to assign the role.
Step 3: Set Channel Permissions
Configure your private channels so only users with the gating role can see them:
- Right-click the channel → Edit Channel → Permissions
- Set @everyone to deny "View Channel"
- Add your gating role and allow "View Channel"
Step 4: Create the Channel on CryptoGated
On the CryptoGated website, create a new channel with these settings:
| Field | What to Enter | How to Find It |
|---|---|---|
| Platform | Discord | Select from dropdown |
| Guild ID | e.g., 1234567890123456789 | Right-click server name → Copy Server ID |
| Role ID | e.g., 9876543210987654321 | Server Settings → Roles → right-click → Copy Role ID |
| Server Invite URL | https://discord.gg/yourcode | Create a permanent invite link (optional) |
How Subscribers Join
- Subscriber links their Discord account on the CryptoGated website (via Discord OAuth in their profile)
- Subscriber joins your Discord server (via the server invite URL you provided, or manually)
- Subscriber pays for a subscription plan
- The CryptoGated bot assigns the gating role automatically — the subscriber can now see the private channels
- On expiry, the bot removes the role and the subscriber loses access to gated channels
Requirements Checklist
CryptoGated Discord bot is in the server
Bot has "Manage Roles" permission
Bot's role is ABOVE the gating role in the hierarchy
Subscribers have their Discord account linked on CryptoGated
Subscribers are a member of the Discord server
Private channels are permission-gated by the role
Enabling Developer Mode
To copy Guild IDs and Role IDs, you need Discord Developer Mode enabled:
- Open Discord → Settings (gear icon)
- Go to Advanced
- Toggle Developer Mode on
Now you can right-click server names to copy Server ID, and right-click roles in Server Settings to copy Role ID.