Aerostack
robot_2

Discord Paid Community Gatekeeper — AI Bot Template for Sales

Bot
aerostack @aerostack verified
· Updated Mar 18, 2026

Discord paid community gatekeeper. Verify Stripe payments, assign roles, manage subscriptions.

star 89 stars content_copy 35 deploys discord v1.0.0

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

  1. Go to Discord Developer Portal
  2. Create application, add bot, copy Bot Token
  3. Enable Server Members Intent
  4. Invite with permissions: Manage Roles, Send Messages, Read Members
Step 2: Set Up Roles
  1. Create roles in your Discord server: Member, Pro Member, VIP
  2. IMPORTANT: Bot's role must be ABOVE the roles it manages in the hierarchy
Step 3: Stripe
  1. Get Secret Key from Stripe Dashboard
  2. Set up webhooks for: customer.subscription.updated, customer.subscription.deleted, invoice.payment_failed
Step 4: Database (Supabase)
  1. Create table: discord_members (discord_id, email, stripe_customer_id, role, verified_at)
Step 5: Test
  1. Create a test Stripe subscription
  2. Join the Discord server
  3. Verify the bot assigns the correct role

Metadata

upgrade Version 1.0.0
description Type Bot
category Category Sales
code Platform discord

What's Included

check_circle 6 API keys needed
check_circle System Prompt
check_circle Setup Guide

Tags

No tags added yet.
robot_2

Deploy this bot in minutes

Discord paid community gatekeeper. Verify Stripe payments, assign roles, manage subscriptions.

More Sales Templates

Browse Sales Templates →

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.