Skip to content

ManagerOptions

Defined in: src/structures/Types/Manager.ts:342

Manager Options used to create the manager

Type Parameter Default type
CustomPlayerT extends Player Player
Property (defined in) Type Description
advancedOptions?
(src/structures/Types/Manager.ts:381)
object Advanced Options for the Library, which may or may not be “library breaking”
advancedOptions.debugOptions?
(src/structures/Types/Manager.ts:387)
object optional
advancedOptions.debugOptions.logCustomSearches?
(src/structures/Types/Manager.ts:389)
boolean For logging custom searches
advancedOptions.debugOptions.noAudio?
(src/structures/Types/Manager.ts:391)
boolean logs for debugging the “no-Audio” playing error
advancedOptions.debugOptions.playerDestroy?
(src/structures/Types/Manager.ts:393)
object For Logging the Destroy function
advancedOptions.debugOptions.playerDestroy.debugLog?
(src/structures/Types/Manager.ts:395)
boolean To show the debug reason at all times.
advancedOptions.debugOptions.playerDestroy.dontThrowError?
(src/structures/Types/Manager.ts:397)
boolean If you get ‘Error: Use Player#destroy(“reason”) not LavalinkManager#deletePlayer() to stop the Player’ put it on true
advancedOptions.enableDebugEvents?
(src/structures/Types/Manager.ts:385)
boolean Enable Debug event
advancedOptions.maxFilterFixDuration?
(src/structures/Types/Manager.ts:383)
number Max duration for that the filter fix duration works (in ms) - default is 8mins
advancedOptions.playerMigration?
(src/structures/Types/Manager.ts:401)
object Player migration configuration
advancedOptions.playerMigration.backpressureDelayMs?
(src/structures/Types/Manager.ts:409)
number Maximum time to wait for migration capacity before retrying. Default: 50ms
advancedOptions.playerMigration.concurrency?
(src/structures/Types/Manager.ts:403)
number Maximum number of players migrated concurrently. Default: 5
advancedOptions.playerMigration.perTargetConcurrency?
(src/structures/Types/Manager.ts:406)
number Maximum number of concurrent migrations to a single target node. Default: 2
autoMove?
(src/structures/Types/Manager.ts:358)
boolean If it should automatically move the player to the next node when node is down
autoSkip?
(src/structures/Types/Manager.ts:356)
boolean If it should skip to the next Track on TrackEnd / TrackError etc. events
autoSkipOnResolveError?
(src/structures/Types/Manager.ts:360)
boolean If it should skip to the next Track if track.resolve errors while trying to play a track.
catchLifeCycleRejections?
(src/structures/Types/Manager.ts:369)
boolean If the library’s internal fire-and-forget lifecycle calls (e.g. autoSkip player.play(), player.destroy(), and the fire-and-forget queue save() inside Player#play()) should catch their own reje…
client?
(src/structures/Types/Manager.ts:348)
BotClientOptions The Bot Client’s Data for Authorization
emitNewSongsOnly?
(src/structures/Types/Manager.ts:371)
boolean If it should emit only new (unique) songs and not when a looping track (or similar) is plaid, default false
httpHeaders?
(src/structures/Types/Manager.ts:379)
Record<string, string> Custom http headers to be sent with every request to lavalink
linksAllowed?
(src/structures/Types/Manager.ts:377)
boolean If links should be allowed or not. If set to false, it will throw an error if a link was provided.
linksBlacklist?
(Never allow link requests with links either matching some of that regExp or including some of that string (doesn’t even allow if it’s whitelisted))
(string \ RegExp)[]
linksWhitelist?
(Only allow link requests with links either matching some of that regExp or including some of that string)
(string \ RegExp)[]
nodes
(NodeLinkNode )
( \ LavalinkNode \
playerClass?
(src/structures/Types/Manager.ts:354)
PlayerConstructor<CustomPlayerT> The player class you want to use when creating a player. (can be extendable)
playerOptions?
(src/structures/Types/Manager.ts:352)
ManagerPlayerOptions<CustomPlayerT> PlayerOptions for all Players
queueOptions?
(src/structures/Types/Manager.ts:350)
ManagerQueueOptions QueueOptions for all Queues
sendToShard
(src/structures/Types/Manager.ts:346)
(guildId: string, payload: GuildShardPayload) => void Async The Function to send the voice connection changes from Lavalink to Discord