Skip to main content

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 aiohttp and websockets
  • 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)

Warning

User account automation violates Discord's Terms of Service. Account termination may occur.

License

MIT

Metadata

Release files for cascade-discord 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cascade-discord 0.3.0
File Size Uploaded Provenance
cascade_discord-0.3.0.tar.gz 68.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cascade-discord 0.3.0
File Interpreter ABI Platform
cascade_discord-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 160.5 kB

Release files / cascade_discord-0.3.0.tar.gz

Download URL cascade_discord-0.3.0.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72886e1a116c757f8a0a3711400d959767a00f3c01c0bbd35d6938ea773575fd
BLAKE2b-256 checksum
How to use checksums
572562f697e8401ac14af4bb79619f0baded10412b01aa3812220212f5832fef
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.3.0-py3-none-any.whl

Download URL cascade_discord-0.3.0-py3-none-any.whl
Size 92.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9126b3ca7c342829462da2010dbd78c684f47c74a97d26f32ea0fd0976bac4e5
BLAKE2b-256 checksum
How to use checksums
0a1e8de4c140e7862949b74cfc6a6e129e2344cf51167be7e00b824c23feef84
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.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page