Discord Player

GuildQueueEvents

No description provided

GuildQueueEvents

PropertyTypeValueDescription
audioFiltersUpdate( queue: GuildQueue<Meta>, oldFilters: Array<keyof QueueFilters>, newFilters: Array<keyof QueueFilters> ) => unknownN/AEmitted when ffmpeg audio filters is updated
audioTrackAdd( queue: GuildQueue<Meta>, track: Track<unknown> ) => unknownN/AEmitted when audio track is added to the queue
audioTrackRemove( queue: GuildQueue<Meta>, track: Track<unknown> ) => unknownN/AEmitted when audio track is removed from the queue
audioTracksAdd( queue: GuildQueue<Meta>, track: Array<Track<unknown>> ) => unknownN/AEmitted when audio tracks were added to the queue
audioTracksRemove( queue: GuildQueue<Meta>, track: Array<Track<unknown>> ) => unknownN/AEmitted when audio tracks are removed from the queue
biquadFiltersUpdate( queue: GuildQueue<Meta>, oldFilters: null | BiquadFilters, newFilters: null | BiquadFilters ) => unknownN/AEmitted when biquad filters is updated
channelPopulate( queue: GuildQueue<Meta> ) => unknownN/AEmitted when a voice channel is populated
connection( queue: GuildQueue<Meta> ) => unknownN/AEmitted when a connection is created
connectionDestroyed( queue: GuildQueue<Meta> ) => unknownN/AEmitted when a connection is destroyed
debug( queue: GuildQueue<Meta>, message: string ) => unknownN/AEmitted when the queue sends a debug info
disconnect( queue: GuildQueue<Meta> ) => unknownN/AEmitted when the bot is disconnected from the channel
dspUpdate( queue: GuildQueue<Meta>, oldFilters: Array<'8D' | 'Tremolo' | 'Vibrato'>, newFilters: Array<'8D' | 'Tremolo' | 'Vibrato'> ) => unknownN/AEmitted when dsp filters is updated
emptyChannel( queue: GuildQueue<Meta> ) => unknownN/AEmitted when the voice channel is empty
emptyQueue( queue: GuildQueue<Meta> ) => unknownN/AEmitted when the queue is empty
equalizerUpdate( queue: GuildQueue<Meta>, oldFilters: Array<EqualizerBand>, newFilters: Array<EqualizerBand> ) => unknownN/AEmitted when equalizer config is updated
error( queue: GuildQueue<Meta>, error: Error ) => unknownN/AEmitted when the queue encounters error
playerError( queue: GuildQueue<Meta>, error: Error, track: Track<unknown> ) => unknownN/AEmitted when the audio player errors while streaming audio track
playerFinish( queue: GuildQueue<Meta>, track: Track<unknown> ) => unknownN/AEmitted when the audio player finishes streaming audio track
playerPause( queue: GuildQueue<Meta> ) => unknownN/AEmitted when audio player is paused
playerResume( queue: GuildQueue<Meta> ) => unknownN/AEmitted when audio player is resumed
playerSkip( queue: GuildQueue<Meta>, track: Track<unknown>, reason: TrackSkipReason, description: string ) => unknownN/AEmitted when the audio player skips current track
playerStart( queue: GuildQueue<Meta>, track: Track<unknown> ) => unknownN/AEmitted when the audio player starts streaming audio track
playerTrigger( queue: GuildQueue<Meta>, track: Track<unknown>, reason: PlayerTriggeredReason ) => unknownN/AEmitted when the audio player is triggered
queueCreate( queue: GuildQueue<Meta> ) => unknownN/AEmitted when a queue is successfully created
queueDelete( queue: GuildQueue<Meta> ) => unknownN/AEmitted when a queue is successfully deleted
voiceStateUpdate( queue: GuildQueue<Meta>, oldState: VoiceState, newState: VoiceState ) => unknownN/AEmitted when the voice state is updated. Consuming this event may disable default voice state update handler if Player.isVoiceStateHandlerLocked() returns false.
volumeChange( queue: GuildQueue<Meta>, oldVolume: number, newVolume: number ) => unknownN/AEmitted when audio player's volume is changed
willAutoPlay( queue: GuildQueue<Meta>, tracks: Array<Track<unknown>>, done: ( track: null | Track<unknown> ) => void ) => unknownN/AEmitted when a queue is trying to add similar track for autoplay
willPlayTrack( queue: GuildQueue<Meta>, track: Track<unknown>, config: StreamConfig, done: ( ...args: unknown[] ) => void ) => unknownN/AEmitted before streaming an audio track. This event can be used to modify stream config before playing a track. Listening to this event will pause the execution of audio player until done() is invoked.

On this page