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.4.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.4.0
File Size Uploaded Provenance Actions
cascade_discord-0.4.0.tar.gz 87.5 kB Without provenance Details for cascade_discord-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 204.9 kB

Release files / cascade_discord-0.4.0.tar.gz

Download URL cascade_discord-0.4.0.tar.gz
Size 87.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b0b5f9a20e71648a919462a0d7c6b0022765e778dd36c7c7f292a025b3e9ff80
BLAKE2b-256 checksum
How to use checksums
c7845ac2a5e3994363670975cec57e20ce86d4dc0bcb7062ba52f20831cde7d5
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.4.0-py3-none-any.whl

Download URL cascade_discord-0.4.0-py3-none-any.whl
Size 117.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
521cb400a5a8e35d2480ad30bbb6ff335e548e649e3c51df22ffbecf27ef077a
BLAKE2b-256 checksum
How to use checksums
f3ee677fbd7369808beb8a52595a21c2dfa3ab4f3307dfa38c09163074de4d36
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.4.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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