Skip to main content

Asynchronous Python API wrapper for the Discord Gateway API and Discord REST API.

Project description

Discode

Discode is an asynchronous Python API wrapper for the Discord REST and Gateway API. This project was inspired by Discord.py and may contain similar functioning.

Basic Example Usage

import discode

client = discode.Client()

# the coroutine under the decorator
# can have any name you wish to use
@client.on_event("ready")
async def ready():
    print(f"{client.user} is ready!")

@client.on_event("message")
async def message(message: discode.Message):
    content = message.content
    if content.startswith("?hi"):
        await message.channel.send("Hiii!!!")

client.start("YOUR-TOKEN-HERE")

Project details


Download files

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

Source Distribution

Discode.py-1.1.1.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distributions

Discode.py-1.1.1-py3-none-any.whl (22.2 kB view hashes)

Uploaded Python 3

DisCode.py-1.1.1-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page