Skip to content

0.5.0: File Attachments & Rate-Limit Retries

Choose a tag to compare

@EthanC EthanC released this 01 Dec 08:18
· 33 commits to main since this release

Breaking Changes

  • Bumped minimum Python version requirement from 3.10 to 3.11 to allow the use of enum.StrEnum and typing.Self.

What's New

  • Added support for uploading files as Attachments (#14).
    • Added an optional fallback argument to Webhook.set_content() to upload messages as file Attachments when the length limit is exceeded.
  • Added automatic retries upon rate-limit failure (#4).

Bug Fixes

  • Adopted astral-sh/ty for type-checking and fixed its findings.
  • Fixed tag and tag_field conflicts that prevented the use of msgspec.inspect.
  • Fixed encoded output type of timestamp field on Embed objects.

Chores

  • Upgraded various development-only dependencies to latest.