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
Basic Example Usage
import discode
client = discode.Client()
# You can specify an event loop
# in the parameters of 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):
print(message.content)
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.0.0.tar.gz
(14.7 kB
view details)
Built Distribution
File details
Details for the file DisCode.py-1.0.0.tar.gz
.
File metadata
- Download URL: DisCode.py-1.0.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b0441914b7d8960af506fe5524cf977653aab7920b58696987ebc6769d8717a |
|
MD5 | f001099b44212efed3ec6b1e2dd57bc3 |
|
BLAKE2b-256 | adb303fa8c3bcc8dab79b5b4639ddcc50e50ad9f5fb5ad1b6e09961eafc8aa8d |
File details
Details for the file DisCode.py-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: DisCode.py-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a12b496e4964c0ecdc939fc3738464658e8d277eb5784ebc17cea1bcd6245a |
|
MD5 | ea87a81a978f4e20ce5df7506fe6b272 |
|
BLAKE2b-256 | 89a7b190b7e9954e969c6e77c28cfe212120416da6bf8097f209e92aea9c299a |