Skip to content

Handle VOICE_CHANNEL_STATUS_UPDATE gateway event#728

Open
Sim-hu wants to merge 1 commit into
Kraigie:masterfrom
Sim-hu:add-voice-channel-status-update-event
Open

Handle VOICE_CHANNEL_STATUS_UPDATE gateway event#728
Sim-hu wants to merge 1 commit into
Kraigie:masterfrom
Sim-hu:add-voice-channel-status-update-event

Conversation

@Sim-hu

@Sim-hu Sim-hu commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Handle the VOICE_CHANNEL_STATUS_UPDATE gateway dispatch event instead of logging it as unhandled.

Motivation

This event is dispatched when a voice channel's status text is set, updated, or cleared. It was reported as unhandled in #688. Other libraries (pycord, serenity, Oceanic) already handle this event.

Changes

  • lib/nostrum/struct/event/voice_channel_status_update.ex — new event struct with id, guild_id, and status fields
  • lib/nostrum/shard/dispatch.ex — add dispatch clause before the catch-all
  • lib/nostrum/consumer.ex — add type definition and union member

Event Payload

Field Type Description
id snowflake Voice channel ID
guild_id snowflake Guild ID
status string | nil Channel status text, nil when cleared

Testing

  • mix compile passes
  • mix test — 212 tests, 0 failures

Ref: #688

Add support for the VOICE_CHANNEL_STATUS_UPDATE dispatch event,
which fires when a voice channel's status text is set or cleared.
Previously this event was logged as unhandled.

Ref: Kraigie#688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant