export declare class VoiceReceiver
Attaches to a VoiceConnection, allowing you to receive audio packets from other users that are speaking.
Constructors
voiceConnection: VoiceConnection)
constructor(voiceConnection: VoiceConnection
Constructs a new instance of the VoiceReceiver
class
readonlySpeakingMap speaking :
The speaking map of the receiver.
readonlySSRCMap ssrcMap :
Maps SSRCs to Discord user ids.
readonlyMap<string, AudioReceiveStream> subscriptions :
The current audio subscriptions of this receiver.
readonlyVoiceConnection voiceConnection :
The attached connection of this receiver.
subscribetarget: 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