Discord Player

AudioPlayerPausedState

The state that an AudioPlayer is in when it has either been explicitly paused by the user, or done automatically by the AudioPlayer itself if there are no available subscribers.

AudioPlayerPausedState

The state that an AudioPlayer is in when it has either been explicitly paused by the user, or done automatically by the AudioPlayer itself if there are no available subscribers.

PropertyTypeValueDescription
onStreamError( error: Error ) => voidN/AN/A
playbackDurationnumberN/AThe playback duration in milliseconds of the current audio resource. This includes filler silence packets that have been played when the resource was buffering.
resourceAudioResource<unknown>N/AThe current resource of the audio player.
silencePacketsRemainingnumberN/AHow many silence packets still need to be played to avoid audio interpolation due to the stream suddenly pausing.
statusAutoPaused | PausedN/AN/A

On this page