const { AoiClient } = require ( 'aoi.js' );
const { Manager } = require ( 'aoijs.lavalink' ); // Importing the MusicClient for handling Lavalink integration.
const client = new AoiClient ({ ... });
const voice = new Manager (client, {
name: 'my lavalink node' , // A custom name for the Lavalink node (can be any string).
host: 'yourdomain.com' , // URL to your Lavalink node. Replace with your actual Lavalink server URL.
port: 0000 , // Your lavalink server port.
auth: 'youshallnotpass' , // Authentication password for the Lavalink node.
secure: false // Set to true if your Lavalink server uses SSL/TLS (HTTPS).
maxQueueSize: 100 , // Maximum number of tracks that can be queued for playback. (default is 100)
maxPlaylistSize: 100 , // Maximum number of tracks that can be in a playlist. (default is 100)
searchEngine: 'ytsearch' , // Default search engine. You can set this to 'ytsearch' or 'scsearch' or others. (default is ytsearch)
debug: false // Whether to enable debug logs for the music client. default is false. (default is false)