Pycord vs discord.py: Which Python Discord Library in 2026?

Published on | Updated

Pycord vs discord.py in November 2026: which Python versions each allows (py-cord stops at 3.14), slash, bridge and hybrid commands, voice, and which to pick.

Cartoon bot mascot sitting on a small server box with online status lights

You want to write a Discord bot in Python and every tutorial picks a different library. The two you see most are Pycord and discord.py. They share most of their code history and even the same import discord line, so the choice comes down to a few real differences: how slash commands are registered, how one command can answer both / and !, voice recording, and, since October 2026, which Python versions each one installs on.

Quick answer: In the Pycord vs discord.py choice, pick discord.py if you want the larger community (16,201 GitHub stars against Pycord's 2,965 on 3 November 2026) or you already run Python 3.15, because discord.py 2.7.1 allows any Python from 3.8. Pick Pycord if you want shorter slash command code that syncs itself, bridge commands, a built-in paginator or voice recording, and you run Python 3.10 to 3.14. Pycord's newest release, 2.8.1, declares Requires-Python <3.15, so on Python 3.15 pip refuses it or falls back to the 2024 release 2.6.1.

Pycord vs discord.py at a glance

Featurediscord.pyPycord
pip packagediscord.pypy-cord
Newest release on PyPI2.7.1 (3 Mar 2026)2.8.1 (25 Jul 2026)
Python versions allowed3.8 and newer3.10 to 3.14
Slash commands@bot.tree.command, you call bot.tree.sync()@bot.slash_command, synced automatically on connect
One command for / and !Hybrid commands (@bot.hybrid_command)Bridge commands (@bot.bridge_command)
Buttons, selects, modalsdiscord.uidiscord.ui
PaginatorNot built indiscord.ext.pages
Voice playbackYesYes
Voice recordingNo built-in APISinks (start_recording)
Auto-shardingAutoShardedBotAutoShardedBot
GitHub stars (3 Nov 2026)16,2012,965
LicenceMITMIT

An earlier version of this post said discord.py has no equivalent of bridge commands. That was wrong: hybrid commands do the same job, as the code further down shows.

Python versions each library allows (3 November 2026)

Python 3.15.0 came out on 9 October 2026, and the Docker tags python:3, python:3-slim and python:latest now point to 3.15.2. This is what each library's PyPI metadata allows on 3 November 2026, plus what pip did when we asked it to resolve the library for Python 3.15 in a dry run:

Library (pip name)Newest releaseUploadedRequires-PythonNewest Python in its classifierspip on Python 3.15
py-cord2.8.125 Jul 2026>=3.10, <3.153.14Skips 2.7 and 2.8, picks 2.6.1 from Sep 2024
discord.py2.7.13 Mar 2026>=3.83.12Picks 2.7.1
disnake2.12.28 Oct 2026>=3.103.14Picks 2.12.2
nextcord3.2.021 May 2026>=3.12, <4.03.14Picks 3.2.0

"Picks" only means pip accepts the release. None of the four lists Python 3.15 in its classifiers yet, so none of them says it was tested there. The py-cord fallback is the trap: 2.6.1 still imports audioop, a module Python 3.13 removed, so the bot crashes on import discord. With py-cord==2.8.1 pinned, pip stops with "No matching distribution found" instead.

Pycord tracks 3.15 support in issue #3247 under the 2.9.0rc1 milestone, and pull request #3400, which would allow 3.11 to 3.15, was still open on 3 November. Until a release lifts the cap, run a Pycord bot on Python 3.14. Our fix for py-cord on Python 3.15 has the exact pip errors, a Dockerfile pinned to python:3.14-slim and the uv and Windows commands for a 3.14 virtual environment.

Where the two libraries came from

discord.py is the original. Its author, Danny (Rapptz on GitHub), announced in a gist on 28 August 2021 that he was stepping away from the project. The GitHub repositories of Pycord, Nextcord and disnake, the libraries that kept building on discord.py's code, were all created that same day. On 6 March 2022 Danny posted that discord.py development would resume. His first reason: Discord planned to retire API versions 6 and 7 on 1 May 2022, and the stable discord.py release of that time, 1.7.3, used version 7. Both projects have been released separately since: discord.py 2.7.1 in March 2026, Pycord 2.8.1 in July 2026.

Because both kept the package name discord, a tutorial's import line does not tell you which library it was written for. Look at the decorators: @bot.tree.command or app_commands means discord.py, @bot.slash_command or discord.ApplicationContext means Pycord.

Slash commands side by side

A complete /ping bot in discord.py:

import discord
from discord.ext import commands


class MyBot(commands.Bot):
    async def setup_hook(self):
        await self.tree.sync()  # registers the slash commands with Discord


bot = MyBot(command_prefix="!", intents=discord.Intents.default())


@bot.tree.command(name="ping", description="Show the bot's latency")
async def ping(interaction: discord.Interaction):
    await interaction.response.send_message(f"Pong: {round(bot.latency * 1000)} ms")


bot.run("YOUR_TOKEN")

The same bot in Pycord:

import discord

bot = discord.Bot()


@bot.slash_command(name="ping", description="Show the bot's latency")
async def ping(ctx: discord.ApplicationContext):
    await ctx.respond(f"Pong: {round(bot.latency * 1000)} ms")


bot.run("YOUR_TOKEN")

The difference is more than length. In discord.py, slash commands live on a separate command tree, and the docs say about CommandTree.sync(): "This must be called for the application commands to show up." The example calls it in setup_hook, which runs once after login and before the bot connects. Pycord's Bot has auto_sync_commands, which defaults to True and syncs the commands when the bot connects. discord.py leaves the timing to you; Pycord does it for you.

One command for slash and prefix: bridge vs hybrid

Pycord's bridge commands need the bridge.Bot class:

import discord
from discord.ext import bridge

intents = discord.Intents.default()
intents.message_content = True  # needed for !info in servers

bot = bridge.Bot(command_prefix="!", intents=intents)


@bot.bridge_command(name="info")
async def info(ctx: bridge.BridgeContext):
    await ctx.respond("Works as /info and !info")


bot.run("YOUR_TOKEN")

discord.py does the same with a hybrid command on its normal commands.Bot:

@bot.hybrid_command(name="info")
async def info(ctx: commands.Context):
    await ctx.send("Works as /info and !info")

Put that next to the /ping command in the discord.py example above, and set intents.message_content = True there too. The slash half of a hybrid command sits on the same command tree, so it shows up after bot.tree.sync(). In both libraries the ! half reads message text, which needs the Message Content intent: a privileged intent that you also switch on in the Discord Developer Portal, on your application's Bot page under "Privileged Gateway Intents".

Voice: playing and recording

Both libraries play audio in voice channels once you install the voice extra: pip install "discord.py[voice]" or pip install "py-cord[voice]". The difference is recording. Pycord has sinks (WAV, MP3 and other formats) and VoiceClient.start_recording(), although its own docs now warn: "Recording may not work as expected due to the new DAVE (End-to-End Encryption) for voice calls." discord.py's VoiceClient has no recording method; a third-party package, discord-ext-voice-recv, adds voice receive and describes itself as not yet feature complete. If recording is the reason you pick Pycord, test it on a real voice channel before you build the rest of the bot.

Which to pick

Choose discord.py if:

  • you already run Python 3.15, or your Docker image follows python:3 or python:latest
  • you want the largest community and the most answers for your exact error
  • you want to decide yourself when slash commands sync
  • you already have a discord.py codebase

Choose Pycord if:

  • you want the shortest path from zero to a working slash command
  • you want bridge commands, the ext.pages paginator or voice recording without extra packages
  • you run Python 3.10 to 3.14 and can pin it until a py-cord release allows 3.15

Both are MIT licensed and both use discord.ui for buttons, selects and modals, so the gap is smaller than the forum arguments suggest. The deciding question for most new bots in November 2026 is simply which Python version you will run on.

What about Nextcord and disnake?

Both started on 28 August 2021, like Pycord, and both still ship releases. Nextcord 3.2.0 (May 2026) needs Python 3.12 or newer. disnake 2.12.2 (8 October 2026) allows Python 3.10 and newer, and it is the most recent release of the four. Either one is a reasonable pick if a tutorial or an existing bot already uses it; otherwise the larger communities of discord.py and Pycord make them the easier start. Our comparison of discord.py alternatives covers the smaller libraries.

Switching between Pycord and discord.py

Both packages install a top-level package called discord, so you cannot have both in one environment. Use a fresh virtual environment, or uninstall the old library first:

python -m pip uninstall -y discord.py
python -m pip install "py-cord==2.8.1"

Then move the slash commands over: @bot.tree.command becomes @bot.slash_command, interaction.response.send_message becomes ctx.respond, and hybrid commands become bridge commands on bridge.Bot. Going the other way, add the bot.tree.sync() call, or your slash commands will not appear.

Keeping the bot online

Whichever library you pick, pin it in requirements.txt (py-cord==2.8.1 or discord.py==2.7.1) so a rebuild never hands you a different release. On our Discord bot hosting you choose the runtime during setup and the packages in requirements.txt are installed when the bot starts, with no sleep mode and auto-restart on crash. If you want to manage the Python version yourself, for example a 3.14 virtual environment next to a system 3.15, a VPS gives you full root access.

FAQ

Is Pycord better than discord.py? Neither is better across the board. Pycord needs less code for slash commands, syncs them for you, and has bridge commands, a paginator and voice recording built in. discord.py has more than five times the GitHub stars, explicit control over syncing, and on 3 November 2026 it is the one of the two that allows Python 3.15.

Does Pycord work on Python 3.15? Not with a current release. py-cord 2.8.1 allows Python 3.10 to 3.14, and on 3.15 pip either refuses a pinned 2.8.1 or installs 2.6.1, which crashes on import. Use Python 3.14 until a release lifts the cap; the py-cord Python 3.15 fix has the steps.

Can I install Pycord and discord.py at the same time? No. Both install a package named discord, so the second install overwrites files of the first. Keep each bot in its own virtual environment.

Is discord.py still maintained in 2026? Yes. Its newest release on PyPI is 2.7.1 from 3 March 2026, and its GitHub repository was last pushed to on 7 September 2026. Its PyPI classifiers stop at Python 3.12, but its metadata allows newer versions.

Does discord.py have bridge commands like Pycord? It has hybrid commands. @bot.hybrid_command makes one command that works as a prefix command and a slash command, which is what Pycord's @bot.bridge_command does.

Which Python version should I use for a Discord bot right now? Python 3.14. All four libraries in the table above accept it, including py-cord 2.8.1, and it gets security fixes until October 2030.

Sources

All opened on 3 November 2026: