$npx skillfedfor your agent

discord.py

A Python wrapper for the Discord API

Worth itPyPI LibrariesReleased Mar 20266.8M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — discord_py-2.7.1-py3-none-any.whl
v2.7.1 · released 2026-03-03 · Python >=3.8 · 2 runtime deps: aiohttp, audioop-lts

Yes. discord.py is a mature, actively maintained library with low install friction, permissive licensing, no known vulnerabilities, and strong community support. It is the standard choice for Python-based Discord bot development. Install it if you need to build Discord bots or integrate Discord API functionality into a Python application.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or higher.
  • A Discord bot token is needed to authenticate; voice support requires optional system packages (libffi-dev, python-dev on Linux).
  • Low install friction with a pure-wheel distribution.

License · maintenance · safety

permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions—suitable for commercial and private projects alike.

last release 2026-03-03 (164 days) · last repo commit 2026-07-27 · 16,135 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,842,167 downloads/mo, #1,837 on PyPI

Verify before relying

pip install discord.py

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='>', intents=discord.Intents.default())
bot.run('your_token')
  • Whether the package's rate-limit handling and memory optimizations meet specific production workload requirements.
  • Performance characteristics when handling large numbers of concurrent guild connections or message events.
Same gist for agents: .md · .json

What it is and what it does

discord.py is a modern, async-first Python library that wraps the Discord API, allowing developers to build bots and client applications that interact with Discord servers, channels, messages, and users. It uses Python's async/await syntax for non-blocking I/O and includes built-in rate-limit handling and memory optimization. The library supports both simple client-based interactions and more complex bot frameworks via its commands extension.

The package depends on aiohttp for HTTP requests and audioop-lts for optional voice support. It is actively maintained, supports Python 3.8 through 3.12, and has a large user base. Installation is straightforward via pip, with optional voice features available through an extra dependency (PyNaCl). The library is production-stable and suitable for building anything from simple command bots to complex Discord applications.

Use it for

  • Build a Discord bot that responds to commands and automates server moderation or management tasks.
  • Create a bot that monitors channels, reacts to messages, or sends notifications based on server events.
  • Develop a custom Discord client application that interacts with the API for data collection or analytics.
  • Implement voice channel features such as audio playback or recording in a Discord bot.
  • Integrate Discord notifications into an external application or workflow.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

discord.py is a mature, actively maintained library with low install friction, permissive licensing, no known vulnerabilities, and strong community support. It is the standard choice for Python-based Discord bot development. Install it if you need to build Discord bots or integrate Discord API functionality into a Python application.

Install

discord-py on PyPI

Before you install

Low install friction with a pure-wheel distribution. Actively maintained with recent commits and a large community (16135 stars). Requires Python 3.8 or higher; voice support optionally depends on aiohttp and audioop-lts at runtime.

Requires Python 3.8 or higher. A Discord bot token is needed to authenticate; voice support requires optional system packages (libffi-dev, python-dev on Linux).

License in practice

MIT License permits free use, modification, and distribution with minimal restrictions—suitable for commercial and private projects alike.

Quickstart

pip install discord.py

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='>', intents=discord.Intents.default())
bot.run('your_token')

Verify before relying

  • Whether the package's rate-limit handling and memory optimizations meet specific production workload requirements.
  • Performance characteristics when handling large numbers of concurrent guild connections or message events.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
aiohttpaudioop-lts
MaintenanceActively maintained 164 days since the last release
Last repo commit
First released
Downloads6,842,167 / month, #1,837 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: UtilitiesTyping :: Typed

Evidence: discord_py-2.7.1-py3-none-any.whl

Tags

Capabilities
discord bot library pythondiscord api wrapperpython discord clientasync discord librarydiscord.py bot frameworkdiscord server automationpython discord integration
Topics
discord-botasync-apiapi-wrapper

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “discord.py bot framework”

  • discord.pydiscord.py is an async-ready Python wrapper for the Discord API that…
  • nextcordNextcord is an async-ready Python wrapper for the Discord API that…
  • discordA Python API wrapper for Discord that provides async-ready access to…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also discord · discord.py-self · hikari · pypresence · qq-botpy · py-cord · nextcord · allianceauth-discordbot · praw · pyTelegramBotAPI