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")