Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Change was merged into discord.py

discord.py

Discord server invite PyPI version info PyPI supported Python versions

A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python.

Key Features

  • Modern Pythonic API using async and await.

  • Proper rate limit handling.

  • 100% coverage of the supported Discord API.

  • Optimised in both speed and memory.

Installing

Python 3.5.3 or higher is required

To install the library without full voice support, you can just run the following command:

# Linux/OS X
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:

# Linux/OS X
python3 -m pip install -U discord.py[voice]

# Windows
py -3 -m pip install -U discord.py[voice]

To install the development version, do the following:

$ git clone https://github.com/Rapptz/discord.py
$ cd discord.py
$ python3 -m pip install -U .[voice]

Optional Packages

  • PyNaCl (for voice support)

Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. apt, yum, etc) before running the above commands:

  • libffi-dev (or libffi-devel on some systems)

  • python-dev (e.g. python3.6-dev for Python 3.6)

Quick Example

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

    async def on_message(self, message):
        # don't respond to ourselves
        if message.author == self.user:
            return

        if message.content == 'ping':
            await message.channel.send('pong')

client = MyClient()
client.run('token')

Bot Example

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='>')

@bot.command()
async def ping(ctx):
    await ctx.send('pong')

bot.run('token')

You can find more examples in the examples directory.

Metadata

Release files for temp-discordpy-without-websockets-requirement 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for temp-discordpy-without-websockets-requirement 0.1
File Size Uploaded
temp_discordpy_without_websockets_requirement-0.1.tar.gz 618.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for temp-discordpy-without-websockets-requirement 0.1
File Interpreter ABI Platform
temp_discordpy_without_websockets_requirement-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / temp_discordpy_without_websockets_requirement-0.1.tar.gz

Download URL temp_discordpy_without_websockets_requirement-0.1.tar.gz
Size 618.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7db02603cde084c7d579d872389f60ffd3f34197d885e4ca722a92bc302cb33c
BLAKE2b-256 checksum
How to use checksums
f5cfe842f31f8c14e4c23d673d6099f57bfd9ff8cbefbce07c10bca2724c6c3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

Release files / temp_discordpy_without_websockets_requirement-0.1-py3-none-any.whl

Download URL temp_discordpy_without_websockets_requirement-0.1-py3-none-any.whl
Size 667.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
361ddcc6fb2ec469706fde56c46a3e14f02671cf0e27204ef6c3c4d89c7227ab
BLAKE2b-256 checksum
How to use checksums
986f003417ef9c759f91e8574aeb0c35a460c6c5c8e02559f31f6dade94a3ef1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page