Skip to main content

cascade

High-performance Discord user API wrapper for Python.

Install

pip install cascade-discord

Voice support:

pip install cascade-discord[voice]

Quick Start

from cascade import Session

session = Session('your_token')

@session.event
async def on_ready():
    print(f'{session.user.name} ready')

@session.event
async def on_message(message):
    if message.content == '!ping':
        await message.reply('pong')

session.run()

Features

  • Full Gateway v10 with reconnect and resume
  • 120+ REST endpoints
  • Rate limit handling with per-bucket tracking
  • Platform spoofing (desktop, mobile, web, console, VR)
  • Rich presence builder
  • Voice support (FFmpeg + Opus)
  • Interactions (buttons, select menus, modals)
  • AutoMod rules
  • Layered caching (LRU/LFU/FIFO/TTL)
  • Token protection and fingerprint randomization
  • Commands framework
  • Quest system with safe heartbeat loops
  • Thread and webhook management
  • Bulk operations

Examples

Send Messages

channel = session.get_channel(channel_id)
await channel.send('hello')

user = session.get_user(user_id)
await user.send('dm')

Friend Requests

await session.send_friend_request('username')

friends = await session.fetch_friends()
for friend in friends:
    print(friend.display_name)

Join Servers

await session.accept_invite('discord-api')

Note: Some servers require captcha verification. You'll get a 400 error with captcha details — handle this in your application.

Quests

quests = await session.quests.get_quests()
active = await session.quests.get_active_quests()

for quest in active:
    await session.quests.run_heartbeat_loop(quest.id)

Rich Presence

from cascade import Activity

activity = Activity.playing('My Game')
await session.change_presence(status='online', activity=activity)

Threads

thread = await channel.create_thread('Thread Name')
await thread.join()
await thread.send('first message')

Webhooks

webhook = await session.rest.get_webhook(webhook_id)
await webhook.send('webhook message')

Bulk Operations

messages = await channel.fetch_messages(limit=100)
message_ids = [m.id for m in messages]
await channel.bulk_delete(message_ids)

Documentation

https://cascade-discord.readthedocs.io

License

MIT

Metadata

Release files for cascade-discord 0.4.2

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.2
File Size Uploaded Provenance Actions
cascade_discord-0.4.2.tar.gz 89.1 kB Without provenance Details for cascade_discord-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 208.3 kB

Release files / cascade_discord-0.4.2.tar.gz

Download URL cascade_discord-0.4.2.tar.gz
Size 89.1 kB
Tags Source
SHA-256 checksum
How to use checksums
270b36cf6e8788d9e819736542c716a98c0a32c389d2090c61450f70892c7413
BLAKE2b-256 checksum
How to use checksums
3cd18b5bfee254629e12cf8b9efbc8072a5a1a307d056e0360369f53bbf5b50c
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.2-py3-none-any.whl

Download URL cascade_discord-0.4.2-py3-none-any.whl
Size 119.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
913b8c729e417b66c5b683bde0247dff85a73f3ee0392fcb5d922e2cfc8d662e
BLAKE2b-256 checksum
How to use checksums
37798757cbc0220352d98b0292911226ab9da7f0faedaa18e615fd426b6e1c8a
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.2

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