{"repo":"AlexFlipnote/discord.http","free":true,"listed":false,"github":"https://github.com/AlexFlipnote/discord.http","clone":"git clone https://github.com/AlexFlipnote/discord.http.git","description":"A Python library for Discord bots using HTTP interactions, with optional WebSocket support and full cache control.","language":"Python","stars":26,"topics":["asyncio","discord","http","interactions","python","bot","gateway","lightweight","slash-commands","websocket"],"license":"MIT","category":"networking-infra","readme_excerpt":"A Python library for Discord bots using HTTP interactions, with optional WebSocket support and full cache control. - Lightweight and fully customisable, no bloat or forced abstractions - HTTP-first with optional WebSocket support when you need it - Full cache control, you decide what gets stored and what does not - Barebone and developer-first, designed to get out of your way - Supports both guild install and user install bot types The API is designed to feel familiar if you are coming from discord.py, so switching between the two should not require much relearning. Requirements & Installing - Python 3.11 or newer - A web server to receive HTTP requests from Discord (nginx, Apache, etc.) Install by using pip install discord.http in the terminal. If pip does not work, there are other ways to install as well, most commonly: - python -m pip install discord.http - python3 -m pip install discord.http - pip3 install discord.http [!NOTE] Want to test the latest changes before the next release? Install the beta with git+https://github.com/AlexFlipnote/discord.http@master instead of discord.http . It can be unstable and unreliable, so use it at your own risk. Quick example Want to also listen to gateway events? Pass enable gateway=True to the client along with your desired intents . Need further help on how to make Discord API able to send requests to your bot? Check out the documentation for more detailed information. Running tests Automated tests use Python's built-in unittest modul","default_branch":null,"files":null,"tree":[],"storefront":"/r/AlexFlipnote","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AlexFlipnote/discord.http/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}