Skip to content

discord.py

A Python library for writing bots and apps that connect to Discord's API.

Stars
16.2k
Forks
3.9k
Licence
MIT
Language
Python
Last update
2 months ago
Type
Library

What it is

discord.py is a Python library that wraps Discord's API so programmers can write code that logs in as a bot and responds to events on Discord servers. It is described in its metadata as an API wrapper for Discord written in Python. The README was empty in the material provided, so details beyond that description are not confirmed here.

  • Build a Discord bot in Python that answers commands posted in a server
  • Write a bot that reacts to events on a Discord server
  • Use the library as the connection layer for a larger Python project that talks to Discord

Great for

  • Python developers who want to build a Discord bot
  • Hobbyists making a small server bot for moderation or commands
  • Developers who want a Python wrapper instead of calling Discord's raw API

Not ideal for

  • Non-programmers who want a bot with no code (the project is a code library)
  • Developers working in languages other than Python, who should use a library for their own language
  • Anyone needing features the README did not confirm, since the README was unavailable for this review
Step-by-step guide: how to use discord.pyInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Python 3

    Clone the repository

    git clone https://github.com/Rapptz/discord.py
  2. 2

    Run it

    • Read the documentation at the project homepage
    • Create a bot application in the Discord developer portal and get its token
    • Write a small Python script that imports the library and logs in with the token
  3. 3

    Get the most out of it

    • Read the official documentation linked from the project homepage
    • Check the repository's issues and history for current status, since no release is listed

Downloads

Strengths

  • Widely starred open-source project (16,201 stars at time of review)
  • Released under the permissive MIT license
  • Tagged with Discord and Python topics and has a documentation homepage

Trade-offs

  • The README provided was empty, so features and usage details could not be verified
  • No published release is listed, so users must rely on the repository's current state
  • Requires Python knowledge and an understanding of Discord's bot concepts

How it compares

ProjectStarsTypeLevelUpdatedBest for
discord.py (this)16.2kLibraryintermediate2 months agoPython developers who want to build a Discord bot
ccxt44.7kLibraryintermediate4 days agoDevelopers building trading bots or algorithmic trading software
hubot16.8kLibraryintermediate5 days agoDevelopers who want a self-hosted chat bot they can customize with JavaScript
OpenWA16.5kAppintermediate4 days agoDevelopers who want to automate WhatsApp messages from their own systems
pytudes24.4kLearning resourceintermediate9 days agoPython learners who want practice problems with worked explanations
eliza19.8kFrameworkadvanced4 days agoDevelopers who want to build AI agents or plugins in TypeScript

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.