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.1

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.1
File Size Uploaded Provenance Actions
cascade_discord-0.4.1.tar.gz 88.2 kB Without provenance Details for cascade_discord-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 206.6 kB

Release files / cascade_discord-0.4.1.tar.gz

Download URL cascade_discord-0.4.1.tar.gz
Size 88.2 kB
Tags Source
SHA-256 checksum
How to use checksums
71f558e854a627dcfbdeb0b776cea04639588af20158cd05f08a9d7f4d33061a
BLAKE2b-256 checksum
How to use checksums
2870955384a5348171f72789455cd868e6fe27506ba1e88fca4860ae0aa6e9ff
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.1-py3-none-any.whl

Download URL cascade_discord-0.4.1-py3-none-any.whl
Size 118.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e892b7314cbc27a66dc94e08c42095433c9140b58940a2773e34f4cf8e9dca98
BLAKE2b-256 checksum
How to use checksums
5c028ffd73142db95b94ba175abd770b73723c646f96fe66d5690b7ac3a7a2f0
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.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.

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