Skip to main content

Asynchronous Discord API Wrapper for Python

Features

  • Sane Handling of 429s
  • User friendly interface

Installing

To Install discord.io Just run the following command:

pip install discord.io

To install our speed requirements just run the following command:

pip install discord.io[speed]

For voice support run the following command:

pip install discord.io[voice]

Examples

This is a quick usecase example for the library!

import discord

client = discord.Client()

@client.event
async def on_ready():
    print('ready!')

@client.slash_command()
async def ping(interaction):
    await interaction.respond('pong!')

client.run('my_bot_token')

This is another example but with a prefixed command

import discord

client = discord.Client()

@client.event
async def on_ready():
    print('ready!')

@client.event
async def on_message(msg):
    if msg.author.bot:
        return
    
    if msg.content.startswith('!ping'):
        await msg.send('Pong!')

client.run('my_bot_token')

The discord.io discord server

Metadata

Release files for discord.io 0.8.2

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

Source distribution (sdist)

Source distribution for discord.io 0.8.2
File Size Uploaded Provenance
discord.io-0.8.2.tar.gz 532.3 kB Without provenance Details

Release files / discord.io-0.8.2.tar.gz

Download URL discord.io-0.8.2.tar.gz
Size 532.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8a87ab70add2edf9847036ffadd43d88869d46394254bcebb7b17aa824e12d
BLAKE2b-256 checksum
How to use checksums
6ed13f310854667d34a7c91bf90fa4c2bf48afef25eac7ab6b40d35a96d066e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for discord.io 0.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.8.2 This release

1 release file No provenance

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