cascade
A modern, high-performance, async-ready API wrapper for Discord's user API written in Python.
Note: Automating user accounts is against the Discord ToS. This library is for educational purposes only. Use at your own risk.
Key Features
- Async/await throughout with
aiohttpandwebsockets - Full Discord Gateway v10 with auto-reconnect and resume
- 120+ REST API endpoints
- Smart rate limit handling with per-bucket tracking
- Device and platform spoofing (desktop, mobile, VR, console)
- Rich presence and activity builder
- Voice connections with FFmpeg and Opus support
- Interactions — buttons, select menus, modals
- Auto-moderation rule management
- Advanced layered caching (LRU/LFU/FIFO/TTL)
- Token protection and fingerprint randomization
- Command framework with prefix support
Installing
Python 3.10 or higher is required.
pip install cascade-discord
For voice support:
pip install "cascade-discord[voice]"
Quick Example
import asyncio
import cascade
async def main():
session = cascade.Session(token)
@session.event
async def on_ready(user):
print(f'Logged in as {user.username}')
@session.event
async def on_message(message):
if message.content == '!ping':
await session.rest.send_message(message.channel_id, 'Pong!')
await session.start()
asyncio.run(main())
Bot Example
from cascade.ext.commands import Bot
bot = Bot(command_prefix='!', self_bot=True)
@bot.command()
async def ping(ctx):
await ctx.send(f'Pong! {bot.session.gateway.latency:.0f}ms')
bot.run(token)
Links
Warning
User account automation violates Discord's Terms of Service. Account termination may occur.
License
MIT
Metadata
Release files for cascade-discord 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cascade_discord-0.2.1.tar.gz | 58.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cascade_discord-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 135.6 kB
Release files / cascade_discord-0.2.1.tar.gz
| Download URL | cascade_discord-0.2.1.tar.gz |
|---|---|
| Size | 58.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d77e5058d1342340bd8c63152e933305734c19984ad491ad8fbfa47aa294f604
|
|
BLAKE2b-256 checksum How to use checksums |
cf43ff754d5dd1ef3962068637444ede49228e6cb0a4f4abebe53f927b6156bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / cascade_discord-0.2.1-py3-none-any.whl
| Download URL | cascade_discord-0.2.1-py3-none-any.whl |
|---|---|
| Size | 77.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f47c6e3d2b169185c144d37f89f694ef5691da546dd6dd016b5d2a6126392caa
|
|
BLAKE2b-256 checksum How to use checksums |
76c6268cdcfeaa530fe2c2bd271101a3d27697b672d88fceade6d3b90295a037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for cascade-discord 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.