discord.py
Python wrapper for the Discord API to build bots and integrations.
SDKs for hosted services PyPI MIT Chat bots
How discord.py is used
discord.py is a dependency in 19 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 91 projects, and what it is used with below comes from all of them. The most used alternative in our scan is python-telegram-bot (34 projects). Projects that use it most often also use python-dotenv (78.0%), aiohttp (61.5%), Pillow (60.4%).
discord.py popularity over time
Gid Score 59: downloads 67, use in agent projects 49, GitHub stars 58, downloads trend 56 (each 0-100). How it is calculated.
Often used with discord.py
| python-dotenv | 78.0% of discord.py projects · 8.5× more than average |
|---|---|
| aiohttp | 61.5% of discord.py projects · 29.8× more than average |
| Pillow | 60.4% of discord.py projects · 15.8× more than average |
| Requests | 57.1% of discord.py projects · 8.4× more than average |
| OpenAI Python Library | 54.9% of discord.py projects · 13.9× more than average |
| Pydantic | 50.5% of discord.py projects · 5.9× more than average |
| FastAPI | 45.1% of discord.py projects · 6.0× more than average |
| PyYAML | 45.1% of discord.py projects · 7.6× more than average |
From all 91 projects in our scan that use discord.py, including the dependency samples.
By coding agent
| OpenClaw | 2.9% of projects set up for it |
|---|---|
| Claude Code | 0.2% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list discord.py as a dependency.
How discord.py is funded
Open Collective: discord.py
| Received, last 12 months | $1,599 Oct 2025 – Sep 2026 |
|---|---|
| Estimated annual budget | $1,970 Open Collective's estimate |
| Balance | $14,136 |
| Raised since the start | $14,136 |
| Typical month median, last 12 months | $110 · $138 over 24 months |
| Last 12 months vs the 12 before | -44% |
| Contributors, last 12 months | 30 |
Top company backers all time, 15 companies in total
| Pokétwo | $4,600 since Aug 2022 |
|---|---|
| Apollo | $1,250 since Aug 2022 |
| Invite Tracker | $600 since Aug 2022 |
| Maki | $400 since Feb 2025 |
| EasyFortniteStats | $335 since Sep 2023 |
Apr 2022Sep 2026
Money by month. First money received in Apr 2022. The typical month is the median: one big one-off donation does not move it.
USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Collective. Source
Ways to fund discord.py
Open Collective
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | pip install discord-py |
|---|---|
| Packages counted | discord.py, discord-py |
| Main stacks | Python (91) |
| Example projects | Paper2Poster/Paper2Poster, Josh-XT/AGiXT, zstar1003/ragflow-plus, avibe-bot/avibe, YuhangChen1/Paper2All |
Alternatives to discord.py
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside discord.py are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| python-telegram-bot pypi Python wrapper library for building Telegram bots with the Telegram Bot API. |
64 | 34 (2.1%) | 1.9M | 29.5K | LGPL-3.0-only |
| Twilio pypi SDK for Twilio communications platform to send SMS, calls, and other messages. |
57 | 15 (0.9%) | 5.2M | 2,085 | MIT |
More in SDKs for hosted services: Supabase JS Supabase SSR AWS SDK for JavaScript (S3) Resend Stripe (JavaScript) Supabase CLI Firebase Stripe.js