Skip to content

Add RestClient.SetVoiceGuildChannelStatusAsync#286

Merged
KubaZ2 merged 2 commits intoalphafrom
feature/voice-channel-status
Mar 2, 2026
Merged

Add RestClient.SetVoiceGuildChannelStatusAsync#286
KubaZ2 merged 2 commits intoalphafrom
feature/voice-channel-status

Conversation

@KubaZ2
Copy link
Member

@KubaZ2 KubaZ2 commented Mar 2, 2026

Fixes #285

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

The documentation preview is available at https://preview.netcord.dev/286.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a REST API surface to update a connected voice channel’s “status” string (Issue #285), wiring the new request DTO into the library’s System.Text.Json source-generation context.

Changes:

  • Added RestClient.SetVoiceGuildChannelStatusAsync to call PUT /channels/{channelId}/voice-status.
  • Introduced VoiceGuildChannelStatusProperties request DTO for the payload.
  • Registered the new DTO in NetCord/Serialization source-generation metadata.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
NetCord/Serialization.cs Registers VoiceGuildChannelStatusProperties for source-generated JSON metadata.
NetCord/Rest/VoiceChannelStatusProperties.cs Adds the request DTO used to serialize the voice-status payload.
NetCord/Rest/RestClient.Channel.cs Adds the new REST method and removes a nullability-warning suppression around invite creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KubaZ2 KubaZ2 merged commit a4617ef into alpha Mar 2, 2026
1 check passed
@KubaZ2 KubaZ2 deleted the feature/voice-channel-status branch March 2, 2026 21:20
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.

Add functionality for changing of voice channel status when connected

2 participants