YourBot v0.0.12
Added
- New
ctx.discord.iter_messages()— page through a channel's entire history in one call, no more juggling before/after cursors by hand. - Typed Discord responses: member, role, channel, guild and message reads now come back fully typed, so your editor autocompletes fields and catches typos.
- Every SDK error now carries a stable code (e.g. CAPABILITY_DENIED, RATE_LIMITED, QUOTA_EXCEEDED) so you can branch on failures cleanly instead of matching strings.
Enhanced
- Type hints now ship in the installed package — autocomplete and type-checking work straight from
pip install yourbot-sdk, no editable checkout needed. - Local tests enforce your plugin's capabilities by default, so a green test means your manifest is actually correct (opt out with
strict_capabilities=False). - The local testing harness now mirrors the live API more closely (KV increments, sliding-window rate-limit counter, HTTP params, SQL limits, metrics aggregates) — passing tests predict real behavior far better.
Fixed
- KV quota errors now report as a quota error instead of a generic rate-limit error, so you can tell the two apart.
yourbot devnow correctly counts KV writes and log lines in its run summary (they previously always showed zero).