Skip to content

v0.2.7 — Voice Gateway Bridge (OP 4)

Latest

Choose a tag to compare

@manelsen manelsen released this 24 Feb 23:30
· 21 commits to master since this release

The Gateway Bridge

The final piece needed before the Voice Engine can begin: OP 4 Voice State Update is now fully wired into Dusk!

What's New

`Dusk::Gateway::Connection`

  • `join-voice-channel(guild-id, channel-id, :mute, :deaf)` — sends OP 4 to request joining a voice channel. Pass an empty string to leave.

`Dusk::Event::Events`

  • `VoiceStateUpdate` — emitted when bot/user voice state changes; provides `session_id` (critical for Voice Gateway handshake).
  • `VoiceServerUpdate` — emitted after OP 4 is sent; provides the `token` and `endpoint` for the Voice WebSocket connection in v0.3.x.

`Dusk::Gateway::Dispatcher`

  • `on-voice-state-update()` — strongly-typed Supply for VoiceStateUpdate events.
  • `on-voice-server-update()` — strongly-typed Supply for VoiceServerUpdate events.

Testing

  • `t/13-voice-gateway-bridge.t` — 18 assertions verifying OP 4 payload construction, VOICE_STATE_UPDATE routing, and VOICE_SERVER_UPDATE routing.