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
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
Discode.py-1.1.1.tar.gz
(17.8 kB
view hashes)
Built Distributions
Discode.py-1.1.1-py3-none-any.whl
(22.2 kB
view hashes)
DisCode.py-1.1.1-py3-none-any.whl
(22.3 kB
view hashes)
Close
Hashes for Discode.py-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8db6f86e9096dba98ddeee7fb352c583d9ecda8a54487eb0fb823bc55e4402 |
|
MD5 | 0a16e93ee98cf2f749a3adf7b841689b |
|
BLAKE2b-256 | 69581295e9f206b900cb96fdb6ab06b1355b540dd28fba6f9bfcd13c2d7fcbab |
Close
Hashes for DisCode.py-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fc61f58fcbdf2dea2c24c92d2ceb4d1d8c100399dfc6aaec41d39d697eb1702 |
|
MD5 | 1e4bd87a7c543f70bd8562602590d209 |
|
BLAKE2b-256 | 1768eecc93702a0d6c0c4c5d285251c88ae92568358eb5bfebc3899ce08fba1f |