PlayerSubscription
Represents a subscription of a voice connection to an audio player, allowing the audio player to play audio on the voice connection.
declare class PlayerSubscription declare class PlayerSubscription constructor(connection, player)
Constructs a new instance of the 
PlayerSubscription class| Name | Type | Optional | Description | 
|---|---|---|---|
| connection | VoiceConnection | No | None | 
| player | AudioPlayer | No | None | 
Readonly
The voice connection of this subscription.
Readonly
The audio player of this subscription.
unsubscribe()
:
void
Unsubscribes the connection from the audio player, meaning that the audio player cannot stream audio to it until a new subscription is made.