Attaches to a VoiceConnection, allowing you to receive audio packets from other users that are speaking.
Constructs a new instance of the
VoiceReceiver class| Name | Type | Optional | Description |
|---|---|---|---|
| voiceConnection | VoiceConnection | No | None |
Creates a subscription for the given user id.
Returns
A readable stream of Opus packets received from the target| Name | Type | Optional | Description |
|---|---|---|---|
| target | string | No | The id of the user to subscribe to |
| options | Partial<AudioReceiveStreamOptions> | Yes | None |