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.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.3.1
File Size Uploaded Provenance Actions
cascade_discord-0.3.1.tar.gz 69.5 kB Without provenance Details for cascade_discord-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 162.6 kB

Release files / cascade_discord-0.3.1.tar.gz

Download URL cascade_discord-0.3.1.tar.gz
Size 69.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1469a085b75873439c6e15ff8714a5f2e209a889d755274c7be8edfb49a85a7e
BLAKE2b-256 checksum
How to use checksums
b665c8391fe7b48a10d26540e3509da4502d5f259537a29354b1cd4f8ad62421
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.1-py3-none-any.whl

Download URL cascade_discord-0.3.1-py3-none-any.whl
Size 93.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73f32820ce2cadd90c743e8be8a227f5f9374f9acad06493612a63aae215f9c2
BLAKE2b-256 checksum
How to use checksums
70d54bda646b8c994ad2f8122f421b8c7be90014b01ad7fbcc175ba5337e6d11
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.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