Welcome to Acords’s Documentation

Welcome to Acords’s Documentation, the place to find all the information about the Acord module. Acord is an efficient and reliable wrapper for the Discord API.

If you have any queries - Click Here to join our support server

Features

  • Modern pythonic API, async and await syntax

  • Easy to use and modify

  • Pydantic models and optional uv_loop installation

  • Ratelimit handling

  • Highly customisable

  • Fast and efficient

Installation

Installing acord is as simple as ever!

Stable

# windows
pip install acord

# linux
pip3 install acord

Development

git clone https://github.com/Mecha-Karen/acord
cd acord

# windows
pip install .

# linux
pip3 install .

Basic Example

from acord import Client, Message, Intents

class MyClient(Client):
    def __init__(self, *args, **kwargs) -> None:
        super().__init__(*args, **kwargs)

    async def on_message(self, message: Message) -> None:
        """ My on_message event handler! """

        if message.content.lower() == ".ping":
            return await message.channel.send(content="Pong!")

if __name__ == "__main__":
    client = MyClient(intents=Intents.ALL)

    client.run("Bot Token")

Dependencies

Acord relies on Pydantic and aiohttp, without them the module cannot function properly. We also recommend installing the speedup package, which can be done using:

# pip3 for Linux/MacOS
pip install acord['speedup']

# pip3 for Linux/MacOS
pip install git+https://github.com/Mecha-Karen/ACord#egg=speedup

Contents