Discord Player

PlayerSubscription

Represents a subscription of a voice connection to an audio player, allowing the audio player to play audio on the voice connection.

PlayerSubscription

Represents a subscription of a voice connection to an audio player, allowing the audio player to play audio on the voice connection.

new PlayerSubscription(connection, player);
ParameterTypeOptional
connectionVoiceConnection
playerAudioPlayer

Properties

public connection: any

The voice connection of this subscription.

public player: any

The audio player of this subscription.

Methods

public 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.

On this page