nextcord
A Python wrapper for the Discord API forked from discord.py
What it is and what it does
Nextcord is a Python library that wraps the Discord API, allowing developers to build Discord bots and applications using async/await syntax. It handles the low-level details of Discord's HTTP and WebSocket protocols, including proper rate limiting and memory optimization, so you can focus on writing bot logic. The library depends on aiohttp for async HTTP requests, audioop-lts for audio handling, and typing_extensions for type hints.
The package is designed for developers building interactive Discord applications—from simple command bots to complex multi-feature applications. It supports slash commands, event listeners, and other modern Discord features through a Pythonic API. Optional dependencies enable voice support (requiring system libraries on Linux) and performance speedups via packages like orjson and aiodns.
Use it for:
- Build a Discord bot with slash commands and event handlers using async/await patterns.
- Create interactive Discord applications that respond to user interactions in real time.
- Implement voice channel features like music playback or voice chat integration.
- Develop moderation or utility bots that interact with Discord guilds and members.
- Prototype Discord integrations quickly without managing raw API calls and rate limits.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Nextcord is an async-ready Python wrapper for the Discord API that lets you build Discord bots and applications using modern async/await syntax with built-in rate limiting and memory optimization.
Yes. Nextcord is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively under MIT. It's a solid choice if you're building Discord bots in Python and need modern async support. The Python 3.12+ requirement is reasonable for a library released in 2021 and actively updated; voice support requires extra system dependencies on Linux but is optional.
Install
nextcord on PyPI
pip
pip install nextcorduv
uv add nextcordpoetry
poetry add nextcordInstalling nextcord
Before you install
Low friction installation with a pure Python wheel. The package is actively maintained with a recent release and no known vulnerabilities. Requires Python 3.12 or higher; voice support and performance optimizations are available as optional extras.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you can use this in proprietary projects without licensing concerns.
Quickstart
pip install nextcord
import nextcord
from nextcord.ext import commands
bot = commands.Bot()
@bot.slash_command(description="Replies with pong!")
async def ping(interaction: nextcord.Interaction):
await interaction.send("Pong!", ephemeral=True)
bot.run("your_token_here")
Python 3.12 or higher required. For voice support, libffi-dev and python-dev system packages must be installed on Linux before pip install.
Verify before relying
- Whether the package maintains API compatibility across Discord API changes and how frequently it updates in response to Discord's breaking changes.
- Performance characteristics and memory overhead compared to other Discord API wrappers when handling large numbers of guilds or concurrent connections.
- Completeness of voice support implementation and any known limitations or edge cases.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, audioop-lts, typing_extensions |
| Maintenance | actively maintained — 85 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 93,196/month — #13,398 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nextcord-3.2.0-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
py-cordpy-cord is an async Python wrapper for the…
permissive · top 15,000 on PyPI
discordA Python API wrapper for Discord that provides…
unclear · top 15,000 on PyPI
discord.pydiscord.py is an async-ready Python wrapper for…
permissive · top 5,000 on PyPI
discord.py-selfAn async Python wrapper for Discord's user…
permissive · top 15,000 on PyPI
allianceauth-discordbotA Discord bot framework for Alliance Auth that…
permissive · top 15,000 on PyPI
hikariHikari is an async Discord bot framework for…
permissive · top 15,000 on PyPI
python-telegram-botProvides a pure Python asynchronous interface…
copyleft · top 1,000 on PyPI
nonebot2NoneBot2 is an asynchronous Python framework…
permissive · top 15,000 on PyPI
sonioxPython SDK for the Soniox speech-to-text and…
permissive · top 15,000 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI