Skip to main content

Queue Basics

Accessing the Queue

Every player instance has a built-in queue system that manages tracks automatically.

Player Creation and Management

Before working with queues, you need to create a player connection:

Adding Tracks to Queue

The proper way to add tracks is through the resolve system:

Handling Different Load Types

Queue Position Tracking

Getting Queue Position

File Upload Support

Handling Local Audio Files

Player Connection Management

Reconnection and Error Handling

Queue Display and Information

Advanced Queue Display

Database Integration

Saving Default Settings

Error Handling Best Practices

Comprehensive Error Handling

Message Management

Auto-Deleting Messages

Player State Management

Basic Player Controls

Utility Functions

Essential Helper Functions

Complete Play Command Pattern

Advanced Queue Commands

Queue Command with Pagination

The queue automatically handles track progression and loop modes. You don’t need to manually manage track transitions.
Always check if a player exists before accessing its queue. A destroyed player will have a null queue.