A modern, lightweight Discord API wrapper for Python focused on speed, simplicity, and clean request handling. RequestCord is built for developers who want direct access to Discord’s REST API without heavy abstractions or browser automation.
- Modern Pythonic SYNC API.
- Automatically generates Discord-compatible HTTP headers
- Structured, developer-friendly return objects
Python 3.11 or higher is required
To install the library, you can just run the following command:
Note
A Virtual Environment is recommended to install the library, especially on Linux where the system Python is externally managed and restricts which packages you can install on it.
# Linux/macOS
python3 -m pip install -U requestcord
# Windows
py -3 -m pip install -U requestcordfrom requestcord import SyncClient, JoinGuildPayload
client = SyncClient()
resp = client.guilds.join(
payload=JoinGuildPayload(
invite_code="YOUR_INVITE_CODE",
token="YOUR_TOKEN"
)
)
print(resp.json())