export declare class VoiceReceiverAttaches to a VoiceConnection, allowing you to receive audio packets from other users that are speaking.
Constructors
constructor(voiceConnection: VoiceConnection)
voiceConnection: VoiceConnection
Constructs a new instance of the VoiceReceiver class
readonlyspeaking : SpeakingMap
The speaking map of the receiver.
readonlyssrcMap : SSRCMap
Maps SSRCs to Discord user ids.
readonlysubscriptions : Map<string, AudioReceiveStream>
The current audio subscriptions of this receiver.
readonlyvoiceConnection : VoiceConnection
The attached connection of this receiver.
subscribe(target: stringoptions?: Partial<AudioReceiveStreamOptions>) : AudioReceiveStream
target: string
options?: Partial<AudioReceiveStreamOptions>
Creates a subscription for the given user id.
Returns: A readable stream of Opus packets received from the target