Skip to main content
Version: v2.10.0

Interface: QueueChangeEvent

The event emitted when the queue of the player is modified. This includes adding, removing, shuffling, or clearing tracks.

Property Type Description Optional
typestring = "queue"The event type identifier. Always "queue" for this event.
actionstring = "add" | "remove" | "clear" | "shuffle" | "roundRobin" | "userBlock" | "autoPlayAdd"Describes the specific queue-related action that triggered the event.
previousQueueLengthnumber | nullThe length of the queue before the event occurred.
currentQueueLengthnumber | nullThe current length of the queue after the event.
tracksTrack[]Array of affected tracks in this event. Only provided for specific actions like "add".