Discord Paid Community Gatekeeper — AI Bot Template for Sales
BotDiscord paid community gatekeeper. Verify Stripe payments, assign roles, manage subscriptions.
Template Discord Paid Community Gatekeeper bundles a ready-to-deploy workspace for sales workflows.
Install in one click from the Aerostack dashboard or via aerostack init --template=discord-paid-community-gatekeeper.
What It Does
Monetize your Discord community with automated access control. Verifies Stripe payments, assigns roles based on subscription tier, manages access when payments fail, and handles billing questions — keeping your paid community secure without manual verification.
What's Built In
- Payment verification — members paste their Stripe payment email, bot verifies and assigns the correct role
- Tier management — different roles for different subscription levels (Starter, Pro, VIP)
- Churn handling — automatically removes roles when subscriptions expire or payments fail
- Billing support — answers questions about invoices, plan changes, and cancellations
- Trial management — optional time-limited trial access with automatic expiration
Best For
- Course creators and educators selling access to exclusive Discord communities
- SaaS companies offering a premium support channel for paying customers
- Content creators with membership tiers (Patreon-style) on Discord
psychology System Prompt
The instructions that define how this bot behaves. It ships pre-configured — edit it anytime in your workspace.
You are a paid community gatekeeper bot on Discord.
## MEMBER VERIFICATION
When a new member joins:
1. Send DM: "Welcome! To access the community, please share the email address you used for your subscription"
2. Look up their email in Stripe
3. If active subscription found:
- Assign the appropriate Discord role based on their plan:
- Starter plan → "Member" role
- Pro plan → "Pro Member" role + access to #pro-only channels
- Enterprise → "VIP" role + access to all channels
- Confirm in DM: "You're verified! You now have access to [channels]"
4. If no subscription: "I couldn't find an active subscription for that email. Here's our signup page: [link]"
## SUBSCRIPTION CHANGES
Monitor Stripe webhooks for:
- Upgrade: add new role, congratulate, announce new channels available
- Downgrade: adjust roles, inform about access changes gracefully
- Cancellation: remove paid roles, keep basic access for 7-day grace period
- Payment failed: DM the member with a friendly payment update link
## BILLING QUESTIONS
- "When is my next payment?" → Check Stripe, provide date and amount
- "How do I upgrade?" → Provide upgrade link
- "I want to cancel" → Ask reason, offer to help, provide cancel link if they insist
- "I was charged incorrectly" → Look up in Stripe, explain the charge, offer to connect with support
## ROLE MANAGEMENT
- Check subscription status daily for expired/cancelled members
- Grace period: 7 days after cancellation before removing roles
- Re-activation: if they re-subscribe, restore roles automatically
## RULES
- NEVER remove roles without Stripe verification
- NEVER share billing details in public channels — DM only
- For disputes: always escalate to human admin
- Keep verification data private
## TONE
- Welcoming for new members
- Helpful for billing questions
- Professional but warm for cancellations
- Celebratory for upgrades checklist Setup Guide
Setup Guide — Discord Paid Community Bot
Step 1: Create Discord Bot
- Go to Discord Developer Portal
- Create application, add bot, copy Bot Token
- Enable Server Members Intent
- Invite with permissions: Manage Roles, Send Messages, Read Members
Step 2: Set Up Roles
- Create roles in your Discord server: Member, Pro Member, VIP
- IMPORTANT: Bot's role must be ABOVE the roles it manages in the hierarchy
Step 3: Stripe
- Get Secret Key from Stripe Dashboard
- Set up webhooks for:
customer.subscription.updated,customer.subscription.deleted,invoice.payment_failed
Step 4: Database (Supabase)
- Create table:
discord_members(discord_id, email, stripe_customer_id, role, verified_at)
Step 5: Test
- Create a test Stripe subscription
- Join the Discord server
- Verify the bot assigns the correct role
Metadata
What's Included
Required MCPs
MCP servers this template connects to.
Tags
Deploy this bot in minutes
Discord paid community gatekeeper. Verify Stripe payments, assign roles, manage subscriptions.
More Sales Templates
Browse Sales Templates →Telegram Sales Assistant
by @aerostack
Telegram sales assistant. Qualify leads, update CRM, book demos via Calendly, and alert on high-value prospects.
WhatsApp Appointment Booking
by @aerostack
WhatsApp appointment booking bot. Book, reschedule, cancel — with real-time availability and reminders.
Slack Sales Deal Room
by @aerostack
Slack sales deal room bot. Salesforce deal updates, Calendly bookings, pipeline alerts — in dedicated deal channels.
WhatsApp Restaurant & Delivery
by @aerostack
WhatsApp restaurant and delivery bot. Menu browsing, ordering, payments, reservations, and delivery tracking.
Sales & Lead Qualification
by @aerostack
AI sales assistant. Qualifies leads, answers pricing questions, books demos, and updates your CRM.
WhatsApp Real Estate Agent
by @aerostack
WhatsApp real estate agent bot. Property search, viewing scheduling, and buyer qualification on WhatsApp.
Frequently asked questions
What does the Discord Paid Community Gatekeeper bot automate for membership access? +
It verifies Stripe payment status on join, assigns the correct Discord role, and automatically revokes access or downgrades the role when a subscription lapses or is cancelled.
Which MCPs are included in the Discord Paid Community Gatekeeper template? +
@aerostack/mcp-discord manages role assignment and member events; @aerostack/mcp-stripe checks subscription status; @aerostack/mcp-supabase stores member records and entitlement history.
How do I support multiple membership tiers in the Discord Paid Community Gatekeeper? +
Create a Stripe product per tier and map each product ID to a Discord role ID in the workspace's tier-mapping config. The bot applies the highest active tier automatically on each verification.
Who is the Discord Paid Community Gatekeeper for and what are the prerequisites? +
Creators, course sellers, and community builders charging for Discord access via Stripe. Requires a Discord bot with Manage Roles permission, a Stripe account, and a Supabase project for member records.