Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AudioManager

The manager of the audio players

Hierarchy

Index

Constructors

constructor

Events

Static AUDIO_END

AUDIO_END: string = "audioEnd"

Emitted whenever an audio is ended after playing

Listener must implement AudioEndCallback

Static AUDIO_ERROR

AUDIO_ERROR: string = "audioError"

Emitted whenever an error is thrown while getting audio source before playing

Listener must implement AudioErrorCallback

Static AUDIO_START

AUDIO_START: string = "audioStart"

Emitted whenever an audio is started playing

Listener must implement AudioStartCallback

Properties

Optional Readonly bufferTimeout

bufferTimeout: number

Abort the player after reaching timeout on buffering (in ms), default to 7 seconds

Optional Readonly cache

The audio cache manager

Readonly soundcloud

soundcloud: SCDL

The soundcloud client (soundcloud-downloader) when getting audio source

Readonly youtube

youtube: downloadOptions

The downloadOptions (ytdl-core) when getting audio source

Methods

deletePlayer

  • deletePlayer(connection: VoiceConnection): boolean
  • Delete player from list and unlink it

    Parameters

    • connection: VoiceConnection

      The voice connection

    Returns boolean

    false if failed or doesn't exist, true if deleted

getPlayer

Generated using TypeDoc