API reference
Class VoiceMediaReceivePolicy
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
A persistent, user-oriented policy for selecting which inbound voice media Discord forwards to this connection.
public sealed class VoiceMediaReceivePolicy
- Inheritance
-
VoiceMediaReceivePolicy
- Inherited Members
Remarks
Discord's voice gateway identifies media streams by SSRC rather than Discord user ID. The owning VoiceConnection resolves this policy against the current voice-session mappings and updates the gateway whenever those mappings change.
Properties
- Kind
Gets the selection behavior represented by this policy.
- UserIds
Gets the Discord user IDs selected by an OnlyUsers or ExceptUsers policy.
Methods
- ExceptUsers(IEnumerable<ulong>)
Creates a policy that receives media from every user except the specified Discord users.
- OnlyUsers(IEnumerable<ulong>)
Creates a policy that receives media only from the specified Discord users.
- ReceiveAll()
Creates a policy that receives media from every remote user.
- ReceiveNone()
Creates a policy that receives no remote media.