musicMusic

Configure music playback settings, Lavalink nodes, and audio features

Introduction

The Music configuration file (music.json) controls Lavalink node connections, default playback settings, channel restrictions, and autoplay features.


Type: Array of Objects

Configure Lavalink servers for music playback.

lavalink_nodes: [
    {
        name: 'Iynx',
        url: '127.0.0.1:2333',
        auth: 'youshallnotpass',
        secure: false,
    },
]

name - Descriptive name for the node url - Server address in format ip:port auth - Lavalink server password secure - Whether to use secure connection (true/false)

You can add multiple nodes and the bot will automatically select the one with the lowest traffic for optimal performance.

circle-exclamation

Default Volume

Type: Number

Starting volume level for new music sessions.

Valid range: 1 to 1000

This is the volume level used when the bot first starts playing music. Users can adjust it afterward using music commands.


Whitelist Channels

Restrict music commands to specific channels.

enabled

Type: Boolean

Whether to enable channel restrictions.

When true: Music commands only work in configured channels When false: Music commands work everywhere


channels

Type: Array of Strings

List of channel IDs where music commands are allowed.

Only applies when enabled is set to true.


Type: Boolean

Override addon Lavalink servers with your own configuration.

When true: Uses your configured Lavalink nodes even if you own the addon When false: Uses premium addon Lavalink servers (if you have the addon)

This option only matters if you have purchased the Lavalink addon.


Autoplay Enabled by Default

Type: Boolean

Automatically add similar songs to the queue.

When true: After the first song plays, the bot automatically adds similar tracks based on metadata When false: Bot only plays queued songs


Complete Configuration Example

Here's a production-ready music configuration:

Last updated