Table of Contents
API reference

Method OnlyUsers

Namespace
DisCatSharp.Voice.Entities
Assembly
DisCatSharp.Voice.dll

OnlyUsers(IEnumerable<ulong>)

Creates a policy that receives media only from the specified Discord users.

public static VoiceMediaReceivePolicy OnlyUsers(IEnumerable<ulong> userIds)

Parameters

userIds IEnumerable<ulong>

The Discord users whose media should be forwarded.

Returns

VoiceMediaReceivePolicy

A policy that allow-lists the specified users.