Skip to content

v0.2.4 — Gateway Event Models

Pre-release
Pre-release

Choose a tag to compare

@manelsen manelsen released this 24 Feb 22:19
· 26 commits to master since this release

Gateway Event Models

Completing the final coverage items for v0.2.x, Dusk now officially emits strongly-typed Event objects for all major Gateway events!

Features

  • Dusk::Event abstract role.
  • 15 new typed objects in Dusk::Event::Events (e.g., MessageCreate, GuildCreate, InteractionCreate).
  • Dispatcher now automatically maps raw WSS payloads to these native objects before emitting them through the events Supply.
  • You can still access the raw JSON via the .raw property.
  • Fixed Raku compilation ambiguities surrounding Cache deletion (.DELETE-KEY).

Asgard Compliance

  • Formalized RF-04 in SPECS and Matrix.

Tests

  • Total tests: 263. 100% Passing.

Install

zef install Dusk