API reference
Method SetMediaSinkPolicyAsync
- Namespace
- DisCatSharp.Voice
- Assembly
- DisCatSharp.Voice.dll
SetMediaSinkPolicyAsync(VoiceMediaReceivePolicy)
Replaces the managed policy that selects which remote users' media Discord forwards to this connection.
public Task SetMediaSinkPolicyAsync(VoiceMediaReceivePolicy policy)
Parameters
policyVoiceMediaReceivePolicyThe persistent user-oriented receive policy.
Returns
- Task
A task representing completion of an immediate gateway update when the connection is ready.
Remarks
This method switches the connection from raw Media Sink Wants mode to managed policy mode. The policy is retained across reconnects and is translated to current SSRCs as Discord announces them.