Note A Virtual Environment is recommended to install the library, especially on Linux where the system Python is externally managed and restricts which packages you can install on it. # Linux/macOS python3 -m pip install -U discord.py # Windows py -3 -m pip install -U discord.py Otherwise to get voice support you should run the following command. discord.py is a modern, easy to use, feature-rich, and async ready API wrapper for Discord.
Features: Modern Pythonic API using async / await syntax Sane rate limit handling that prevents 429s Command extension to aid with bot creation Easy to use with an object oriented design Optimised for both speed and memory Getting started ¶ Is this your first time using the library? This is the place. If you still want to use discord-ext-slash, but cant update it, then you must run pip install discord.py==1.7.3 (the newest version < 1.8). This will install an old version of discord.py though, and is probably not a good idea, as there have been many changes to discord's API since 2021 when that version was released.
An API wrapper for Discord written in Python. Contribute to Rapptz/discord.py development by creating an account on GitHub. Discord.py 2.0 changes Upon the return of the most popular discord API wrapper library for Python, discord.py, while catching on to the latest features of the discord API, there have been numerous changes with additions of features to the library.
With >=3.8 support, it offers a python wrapper for the discord api with an intuitive API and comprehensive documentation. Whether you're building web applications, data pipelines, CLI tools, or automation scripts, discord.py offers the reliability and features you need with Python's simplicity and elegance. discord.py A Python wrapper for the Discord API Installation In a virtualenv (see these instructions if you need to create one): pip3 install discord.
Python Version Change Major Model Changes Sending Messages Asynchronous Iterators Event Changes Voice Changes Waiting For Events Upgraded Dependencies Sharding Connection Improvements Command Extension Changes Setting Up Logging API Reference Version Related Info Client Voice Event Reference Utility Functions Profile Enumerations Async Iterator. Outdated pip: Ensure you've upgraded pip to the latest version before installing discord.py. Incompatible Python version: Make sure you're using Python 3.8 or higher.
libffi-dev (or libffi-devel on some systems) python-dev (e.g. python3.6-dev for Python 3.6) Using with Upstream If you would like to use the library alongside upstream discord.py, you can install selfcord.py instead of discord.py.