Skip to content

v2.1.0

Pre-release
Pre-release

Choose a tag to compare

@HollowTheSilver HollowTheSilver released this 05 Apr 06:59
· 17 commits to main since this release

This is the final "pre-release"! v3.0.0 (April 13-15th) will feature brand new view and component patterns, new instance management convenience layers for class properties, override hooks and helpers. A complete documentation overhaul, state management consolidation, and just an overall solid foundation that extends readability, removes bloat and allows our community to truly build a long standing discord.py staple. I've spent two consecutive weeks identifying bugs, strengthening async and concurrency handling and completely restructured the directory and file layout, state store data, and so much more!

CascadeUI 2.1.0 adds multi-user access control, participant-aware sessions, and a configurable card() API.

Highlights

  • allowed_users attribute for declarative control over who can interact with a view
  • register_participant() / unregister_participant() for tracking non-owner users in the session index
  • Session limiting now applies to all participants, not just the view owner
  • SessionLimitError gains blocked_user_id for cog-level error handling
  • card() accepts mixed strings and V2 components freely (strings auto-wrapped in TextDisplay)
  • Replace policy only targets views owned by the current user
  • TicTacToe example: two-player V2 game with challenge flow, dynamic board size, configurable win length, mutual rematch, and participant sessions
  • Removed ~14 redundant update_from_state stubs from pattern views and examples

See the full CHANGELOG for details.

pip install pycascadeui==2.1.0

Full Changelog: v2.0.0...v2.1.0