Migrating to nextcord¶
Due to the original discord.py repository becoming read-only, we decided that it would be necessary to fork it and keep on developing further. We also wanted to change the name and voted on nextcord in order to properly register it at pypi.
Porting from discord.py¶
In order to port a bot using discord.py to nextcord, follow these steps:
# Linux/macOS python3 -m pip uninstall discord.py # Windows py -3 -m pip uninstall discord.py
# Linux/macOS python3 -m pip install -U nextcord # Windows py -3 -m pip install -U nextcord
Update the following import statements:
For all places in your code that used
discord(embeds, colors, etc), change them to use
Note: Steps 3 and 4 are not entirely necessary and your code should still work, but is highly recommended.
For more information on migrations, view the rest of the migration documentation: