# Rapptz/discord.py

An API wrapper for Discord written in Python.

Repository: https://github.com/Rapptz/discord.py
Canonical: https://ross.abutalabs.com/products/discordpy
Homepage: http://discordpy.rtfd.org/en/latest
Language: Python
License: MIT
License Family: permissive
Topics: discord, discord-api, python, python-3, bot, discord-bot, discord-py
Last push: 2026-07-27T18:33:15+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 4030, "days_push": 37, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 16155, forks 3926 (observed 2026-08-28T04:11:14.869698+00:00)

## What it is
discord.py is a modern, async-ready Python library wrapping the Discord API, including a commands extension for building bots. It handles rate limiting, gateway intents, and voice support.

## Use cases
- build a discord bot in python
- respond to discord messages with a bot
- create slash commands and interactions for discord
- add voice chat support to a discord bot
- automate discord server moderation
- run scheduled tasks in a discord bot

## When to choose
- you want a mature, well-documented Python Discord API wrapper with async/await
- you need built-in rate limit handling and a commands framework
- you want voice support and rich Discord feature coverage

## When to avoid
- you're building bots in another language like JavaScript or Go
- you only need simple webhook messages without a full gateway connection
- you need a synchronous API without asyncio

## Facets
- artifact type: library
- maturity: stable
- function: http-client, websocket, api-framework
- domain: messaging-platforms, apis, chatbots
- platform: python, cross-platform
- tags: discord, discord-bot, async, bot-framework, api-wrapper, automation

## Member repositories
- Rapptz/discord.py (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:14.869698+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:05:12.682220+00:00, confidence not recorded.
  - readme: https://github.com/Rapptz/discord.py (fetched 2026-08-28T04:11:14.869698+00:00, sha ddbd88cc845d)
  - homepage: http://discordpy.rtfd.org/en/latest (fetched 2026-08-29T08:02:52.587274+00:00, sha d0a8a0206192)
  - registry_pypi: https://pypi.org/pypi/discord.py/json (fetched 2026-08-29T08:02:52.597020+00:00, sha 22ee3588af46)
- Data as of 2026-08-30T08:39:29.467469+00:00.
