Skip to content

v3.14.2

Choose a tag to compare

@HollowTheSilver HollowTheSilver released this 11 Oct 18:18
· 6 commits to main since this release

This patch fixes a panel that could stay stuck on an older page after a slow page turn, and handles a request Discord never answers like a dropped connection. Views posted through a channel now find their bot, and the unreachable sweep restores a panel it finds reachable again.

Added

  • REGISTRY_PRUNED names the message each pruned row was on, so a bot that keeps its panel's message id can tell its current panel from an earlier post under the same key.

Changed

  • DISCORD_CALL_ERRORS includes asyncio.TimeoutError, so code catching the tuple also catches a request Discord never answered. A block that handles its own timeout catches asyncio.TimeoutError in a clause above the tuple.
  • send() calls on_bind for a persistent view posted through a channel, so an await view.on_bind(bot) before the send can go, unless code before send() reads what on_bind sets. Code that keeps it sees the hook run twice, which an idempotent on_bind already allows.

Fixed

  • A panel no longer sticks on an older page after a slow page turn. The next press answers with the view's current render, with no extra request.
  • A view posted through a channel finds its bot, so it keeps the client's mention rules on every edit.
  • The unreachable sweep restores a panel it finds reachable again, and keeps a row whose re-check says nothing about its message instead of deleting it.
  • A repost that cannot close an earlier run's message says so, and a prune that fails part way reports the rows it already deleted.

Documentation

Stalled Edits
DISCORD_CALL_ERRORS
on_bind
Unreachable Rows
REGISTRY_PRUNED

Install

pip install pycascadeui==3.14.2

See the full CHANGELOG for every change in this release.

Full Changelog: v3.14.1...v3.14.2