Asynchronous Discord API Wrapper For Python
Reason this release was yanked:
Version is massively unstable and undercuts true momentum
Project description
Asynchronous Discord API Wrapper for Python
Features
- Sane Handling of 429s
- User friendly interface
- Most Gateway events
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
from discord.ext import commands
bot = commands.Bot(command_prefix='!')
@bot.command()
async def ping(ctx):
await ctx.send('pong!')
bot.run('my_bot_token')
Useful Links
The d.io discord server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord.io-1.0.0.tar.gz
(538.4 kB
view hashes)