Skip to main content

discord.aio is an asynchronous Discord API wrapper for asyncio and python

Project description

PyPI version Python version Module status License Discord Documentation Status
discord.aio is an asynchronous Discord API wrapper

Currently under very early development

Python 3.6+ only.


You can find the module documentation here: documentation


With pip:

  • pip3 install discord.aio

From source:

  • git clone && cd discord.aio && pip3 install .

Local development

  • git clone
  • cd discord.aio && pip3 install -e .

Example bot

import asyncio
import os
import logging
from discordaio import DiscordBot

    level='DEBUG', format='%(asctime)s - %(name)s - %(levelname)s: %(message)s')
logger = logging.getLogger('my_lovely_bot')

if __name__ == '__main__':
    TOKEN = os.environ['DISCORD_TOKEN']

    bot = DiscordBot(TOKEN)

    async def on_ready():'Connected!')'My username is {bot.user}')

    @bot.event('on_message') # You can also use a custom function name.
    async def foo_bar(message):'{}: {message.content}')

Here you can find a more extensive example.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for discord.aio, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size discord.aio-0.3.1-py3-none-any.whl (27.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size discord.aio-0.3.1.tar.gz (21.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page