Table of Contents
API reference

Method SetMediaSinkWantsAsync

Namespace
DisCatSharp.Voice
Assembly
DisCatSharp.Voice.dll

SetMediaSinkWantsAsync(VoiceMediaSinkWants)

Replaces the raw Media Sink Wants snapshot sent to Discord's voice gateway.

public Task SetMediaSinkWantsAsync(VoiceMediaSinkWants wants)

Parameters

wants VoiceMediaSinkWants

The complete desired default and SSRC-specific want values.

Returns

Task

A task representing completion of an immediate gateway update when the connection is ready.

Remarks

This method switches the connection from managed user-policy mode to raw mode. Each snapshot replaces the gateway's previous Media Sink Wants state and is retained across reconnects.