Voice: send ApiRequest::UpdateMemberVoice (guild member PATCH) from the runtime #134

Open
opened 2026-11-11 22:20:05 +00:00 by charles · 0 comments
Owner

Voice 20 (#81) adds the moderation actions of the participant menu (UserAction::{ServerMute, ServerDeafen, DisconnectUser, MoveUser}). The store turns each into ApiRequest::UpdateMemberVoice { guild_id, user_id, change: MemberVoiceChange }, answered with ApiResult::MemberVoiceUpdated.

The plan scopes Voice 20 to fluxer-core and fluxer-ui, so the transport is not there yet: apps/fluxer/src/runtime.rs answers the request with an HTTP 501 error (code: CLIENT_NOT_WIRED) and the server is never called.

To do:

  • fluxer-proto: the voice subset of GuildMemberUpdateRequest (mute, deaf, channel_id (nullable), connection_id), with a fixture.
  • fluxer-api: PATCH /guilds/{guild_id}/members/{user_id} (200, body ignored), wiremock test.
  • apps/fluxer: map MemberVoiceChange to the body: Mute(b) -> {"mute": b}, Deaf(b) -> {"deaf": b}, Channel { channel_id, connection_id } -> {"channel_id": id-or-null, "connection_id": id} (connection_id left out when None).
  • Optionally show the original's VoiceMemberModerationFailedModal on failure.
Voice 20 (#81) adds the moderation actions of the participant menu (`UserAction::{ServerMute, ServerDeafen, DisconnectUser, MoveUser}`). The store turns each into `ApiRequest::UpdateMemberVoice { guild_id, user_id, change: MemberVoiceChange }`, answered with `ApiResult::MemberVoiceUpdated`. The plan scopes Voice 20 to `fluxer-core` and `fluxer-ui`, so the transport is not there yet: `apps/fluxer/src/runtime.rs` answers the request with an HTTP 501 error (`code: CLIENT_NOT_WIRED`) and the server is never called. To do: - `fluxer-proto`: the voice subset of `GuildMemberUpdateRequest` (`mute`, `deaf`, `channel_id` (nullable), `connection_id`), with a fixture. - `fluxer-api`: `PATCH /guilds/{guild_id}/members/{user_id}` (200, body ignored), wiremock test. - `apps/fluxer`: map `MemberVoiceChange` to the body: `Mute(b)` -> `{"mute": b}`, `Deaf(b)` -> `{"deaf": b}`, `Channel { channel_id, connection_id }` -> `{"channel_id": id-or-null, "connection_id": id}` (connection_id left out when None). - Optionally show the original's `VoiceMemberModerationFailedModal` on failure.
charles added this to the Voice milestone 2026-11-11 22:20:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#134
No description provided.