Danny, the sole developer of Discord.py has announced that he will no longer continue working on the project called “Discord.py”, According to my understanding, he is quitting because it’s too much stress and there is no fun in working on something for a company like discord which is trying to limit the possibilities.
He announced this about 2 weeks back, now, if your bot is in <100 servers and you don’t plan on verifying it in the future, then you don’t have to worry about shifting to another fork of discord.py. But if you plan on scaling your bot to more than 100 servers then you will have to verify it whatsoever and since the message will become a privileged intent, you will have to shift your bot to slash commands which isn’t possible in Discord.py itself. But there is one maintained fork of dpy that has the same functions as dpy but with slash commands!
What is that “fork”
That fork is PyCord — A fork of discord.py. PyCord is a modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord written in Python.
Shifting to PyCord
(Python 3.8 or higher is required)
To install the library without full voice support, you can just run the following command:
python3 -m pip install -U py-cord
py -3 -m pip install -U py-cord
Otherwise to get voice support you should run the following command:
python3 -m pip install -U “py-cord[voice]”
py -3 -m pip install -U py-cord[voice]
To install the development version, do the following:
$ git clone https://github.com/Pycord-Development/pycord
$ cd pycord
$ python3 -m pip install -U .[voice]
Boom! There you have it, PyCord has been successfully installed.
Now, all you have to do is uninstall discord.py and your bot should start working without needing any code change.
It’s my first time making a bot, any example?
Yes! The examples for PyCord can be found here.
Wait so, I don’t have to change anything?
Yep, you don’t have to change anything because all of the basic functions of discord.py are present in PyCord.