export declare class PlayerSubscription
Represents a subscription of a voice connection to an audio player, allowing the audio player to play audio on the voice connection.
Constructors
connection: VoiceConnectionplayer: AudioPlayer)
constructor(connection: VoiceConnection
player: AudioPlayer
Constructs a new instance of the PlayerSubscription
class
readonlyVoiceConnection connection :
The voice connection of this subscription.
readonlyAudioPlayer player :
The audio player of this subscription.
unsubscribevoid () :
Unsubscribes the connection from the audio player, meaning that the audio player cannot stream audio to it until a new subscription is made.