A good Discord bot quietly does the work a team of moderators would otherwise do by hand: it greets new members, hands out roles, opens support tickets, removes spam, posts updates from your app and answers common questions. A bad one goes offline at the busiest moment, asks for permissions nobody understands or stops working when the server grows. This guide explains what custom Discord bot development involves: the features servers ask for most, how bots are built today, where to host one, the Discord rules that shape the design, and what a build costs at $50 per hour. A bot automates the rules and workflows you define; it does not replace a moderation policy or a community plan.
The short answer
- Most custom bots do one of four jobs: onboarding and roles, moderation, member features such as tickets, levels and events, or integrations that connect Discord to your own systems.
- Modern bots use slash commands, buttons and modals, not text commands that read every message. That keeps permissions small and the bot easier to approve.
- A bot needs to run all the time. A small cloud server or container with automatic restarts is usually enough; a home PC or a free tier that sleeps is not.
- Typical cost: a ticket, role or moderation bot is usually 15 to 40 hours ($750 to $2,000); a paid-membership bot 30 to 60 hours ($1,500 to $3,000); a bot with a web dashboard 80 to 160 hours ($4,000 to $8,000).
Discord bot features servers ask for most
Onboarding, verification and roles
New members pick roles with buttons or select menus, accept the rules, or verify through a short flow before they can see the main channels. The bot can also link roles to things outside Discord: a customer in your app, a course purchase, or a membership level. Discord's own onboarding and AutoMod features cover the basics for free, so a custom bot is worth it when the rules depend on your own data.
Moderation and logging
Spam and link filters, raid protection when many accounts join at once, timeouts, warnings with a history per member, and a private log channel that records edits, deletes and moderator actions. A custom bot can apply your exact rules, for example allowing links from trusted roles only, and keep a searchable record moderators can review.
Tickets and support
A button opens a private ticket channel or thread for the member and your support team, with a category, a transcript saved when the ticket closes, and optional hand-off to a helpdesk or CRM. This is one of the most requested custom bots because it replaces DMs to individual staff.
Paid memberships
The bot gives and removes roles when a payment starts, renews or fails. Payments usually run through Stripe or Patreon, with the bot listening to their webhooks; in supported regions, Discord's own app subscriptions are also an option. The hard part is not giving the role, it is handling refunds, failed renewals and members who leave and rejoin without anyone losing access by mistake. See our Stripe and payments page for that side.
Integrations and alerts
Posting new orders, sign-ups, GitHub releases, uptime alerts, price or market alerts and reports into the right channel, and letting staff run actions from Discord, such as approving a request or looking up a customer. If a bot posts trading or price alerts, it reports what your systems or your strategy produce; it does not make trading decisions safer or more profitable, and trading always carries risk. For bots that trade, see trading bot development and our guide to building a Telegram trading bot safely, where the same key and access rules apply.
AI assistants
A bot that answers questions from your documentation, FAQs or knowledge base, in a help channel or by slash command, with links to the source and a hand-off to a human when it is not sure. This is retrieval over your own content, explained in how RAG works, and built as part of our AI chatbot development work. Model usage adds a running cost per answer.
How a Discord bot is built
A Discord bot is an application created in the Discord Developer Portal, with a bot token and an invite link that asks for specific permissions. The code usually uses discord.js (Node.js) or discord.py (Python), both mature libraries for Discord's API.
- Gateway connection. The bot keeps a WebSocket connection open to Discord and receives events such as members joining, messages and reactions. This is why most bots need a server that is always on.
- Interactions. Slash commands, buttons, select menus and modals arrive as interactions. Discord expects a reply within about three seconds; longer jobs send a "thinking" response first and follow up when done.
- Gateway intents. The bot declares which kinds of events it wants. Message content, the full member list and presence are privileged intents: you switch them on in the portal, and once a bot is in 100 or more servers Discord must approve them during verification. Designing around slash commands often removes the need for message content at all.
- Storage. PostgreSQL, SQLite or Redis holds settings per server, tickets, warnings and membership status.
- Admin config. Settings such as log channels, role names and filters live in a config file, a
/setupcommand or a small web dashboard, so you can change them without a developer.
If you need the same bot on Telegram or Slack, the core logic can be shared and each platform gets a thin layer on top. Our Telegram and Discord bot development page covers each platform.
Discord bot hosting: where should it run?
| Option | Good for | Watch out for |
|---|---|---|
| Small cloud server (VPS) | Most single-server and small multi-server bots | You maintain updates, restarts and backups |
| Container platform (Docker on a managed service) | Bots with a dashboard, database and several services | Make sure the service does not sleep or scale to zero |
| Serverless (HTTP interactions only) | Bots that only answer slash commands and buttons | No gateway, so no join, message or reaction events |
| Free tiers and home PCs | Testing only | Sleep, downtime and lost events |
For most servers, a small cloud server costs roughly $5 to $20 a month, run under Docker or a process manager that restarts the bot if it crashes, with alerts if it goes offline. The bot token lives in an environment variable or secrets manager, never in the code or a public repository; if it leaks, reset it in the Developer Portal straight away. We usually host on your own cloud account so you own everything. Our cloud and DevOps and Linux server work covers this.
Growing past one server: verification, sharding and rate limits
A private bot for your own community never meets most of these limits. A public bot that other servers can invite needs them planned from the start:
- Verification. Discord requires verification before a bot can join more than 100 servers, including identity checks for the owner and a review of privileged intents.
- Sharding. Above about 2,500 servers, a bot must split its gateway connection into shards. discord.js and discord.py support this, but the bot's state and caching must be designed for it.
- Rate limits. Discord limits how fast a bot can call the API, per route and overall. A well-built bot reads the rate-limit headers, queues requests and never sends bulk DMs or mass role changes in a tight loop.
Discord updates these numbers and policies from time to time, so we check the current developer documentation at the start of each project.
Rules, terms and what we will not build
A bot must follow Discord's Terms of Service and Developer Policy, the terms of any service it connects to, and the laws where you and your members are, including privacy rules for any member data it stores. We build on the official bot API only. We do not build self-bots or user-account automation, mass-DM or spam bots, fake member or engagement bots, raid tools, scraping of other servers' members, or bots for betting or gambling. A bot that handles payments or personal data should have a short privacy note and keep only the data it needs.
How much does Discord bot development cost?
| Bot | Typical hours | Cost at $50/h |
|---|---|---|
| Role, verification and onboarding bot | 15–35 h | $750–$1,750 |
| Ticket and support bot with transcripts | 20–40 h | $1,000–$2,000 |
| Moderation and logging bot with your rules | 15–40 h | $750–$2,000 |
| Paid-membership roles linked to Stripe or Patreon | 30–60 h | $1,500–$3,000 |
| AI assistant that answers from your documents | 40–80 h | $2,000–$4,000 |
| Bot with a web dashboard for settings | 80–160 h | $4,000–$8,000 |
| Public multi-server bot (verification, sharding, dashboard) | 100+ h | $5,000+ |
Running costs are hosting (often $5 to $20 a month for a small bot), a database if it is hosted separately, AI model usage for assistant bots, payment fees for membership bots, and maintenance. Discord changes its API and libraries release updates, so plan a few hours a quarter to keep a bot current. What pushes the price up: many features in one bot, complex payment rules, a dashboard, multi-server support and integrations with systems that have no clean API. Use the bot cost calculator for a range based on your features.
How to brief a Discord bot developer
You get a faster and more accurate quote if you send:
- Whether the bot is for your server only or public for other servers to invite.
- The jobs it must do, in priority order, and the commands or buttons members and staff will use.
- Roles and permissions: who can do what.
- Any outside systems: payments, your app, a CRM, a spreadsheet or a feed.
- Where it should be hosted, and who will change settings after launch.
Start with the one or two jobs that save the most time; a focused bot usually ships in one to three weeks, and more features can follow once it is running.
How we help
ZAWN Technologies has built software for clients worldwide since 2014 from Lahore, Pakistan, and is a Preferred Freelancer on Freelancer.com with a 4.9 average from 356 reviews, 95% of projects on time and 99% on budget. We build Discord and Telegram bots with discord.js or discord.py, hosted on your account, with the source code handed over. For the full range of bot work see bot development; related services include business automation, AI chatbots, web scraping, ecommerce automation bots, crypto trading bots, arbitrage bots and MT5 Expert Advisors.
Questions server owners ask
How much does it cost to make a custom Discord bot?
At $50 per hour, a ticket, role or moderation bot is usually 15 to 40 hours ($750 to $2,000). A paid-membership bot is about 30 to 60 hours ($1,500 to $3,000), and a bot with a web dashboard is 80 to 160 hours ($4,000 to $8,000). Hosting for a small bot is often $5 to $20 a month.
Where should a Discord bot be hosted?
On an always-on server, such as a small cloud server or a container service that does not sleep, with automatic restarts and an alert if the bot goes offline. Bots that only answer slash commands and buttons can run serverless over HTTP, but they then receive no join, message or reaction events.
Do I need Discord verification for my bot?
Only if the bot will be in more than 100 servers. A private bot for your own community does not need verification. Public bots must be verified to grow past 100 servers, and privileged intents such as message content need Discord's approval at that point.
Plan your Discord bot
Send us the jobs your bot should do, who will use it and any systems it needs to connect to. We reply within one business day with questions or a milestone estimate at $50 per hour. Start a project, or hire us on Freelancer, where clients pay 0% commission through this link.