Skip to content

ManagerOptions

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

Manager Options used to create the manager

Type ParameterDefault type
CustomPlayerT extends PlayerPlayer
PropertyTypeDescriptionDefined in
advancedOptions?objectAdvanced Options for the Library, which may or may not be “library breaking”src/structures/Types/Manager.ts:288
advancedOptions.debugOptions?objectoptionalsrc/structures/Types/Manager.ts:294
advancedOptions.debugOptions.logCustomSearches?booleanFor logging custom searchessrc/structures/Types/Manager.ts:296
advancedOptions.debugOptions.noAudio?booleanlogs for debugging the “no-Audio” playing errorsrc/structures/Types/Manager.ts:298
advancedOptions.debugOptions.playerDestroy?objectFor Logging the Destroy functionsrc/structures/Types/Manager.ts:300
advancedOptions.debugOptions.playerDestroy.debugLog?booleanTo show the debug reason at all times.src/structures/Types/Manager.ts:302
advancedOptions.debugOptions.playerDestroy.dontThrowError?booleanIf you get ‘Error: Use Player#destroy(“reason”) not LavalinkManager#deletePlayer() to stop the Player’ put it on truesrc/structures/Types/Manager.ts:304
advancedOptions.enableDebugEvents?booleanEnable Debug eventsrc/structures/Types/Manager.ts:292
advancedOptions.maxFilterFixDuration?numberMax duration for that the filter fix duration works (in ms) - default is 8minssrc/structures/Types/Manager.ts:290
autoMove?booleanIf it should automatically move the player to the next node when node is downsrc/structures/Types/Manager.ts:276
autoSkip?booleanIf it should skip to the next Track on TrackEnd / TrackError etc. eventssrc/structures/Types/Manager.ts:274
autoSkipOnResolveError?booleanIf it should skip to the next Track if track.resolve errors while trying to play a track.src/structures/Types/Manager.ts:278
client?BotClientOptionsThe Bot Client’s Data for Authorizationsrc/structures/Types/Manager.ts:266
emitNewSongsOnly?booleanIf it should emit only new (unique) songs and not when a looping track (or similar) is plaid, default falsesrc/structures/Types/Manager.ts:280
linksAllowed?booleanIf links should be allowed or not. If set to false, it will throw an error if a link was provided.src/structures/Types/Manager.ts:286
linksBlacklist?(string | RegExp)[]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)src/structures/Types/Manager.ts:284
linksWhitelist?(string | RegExp)[]Only allow link requests with links either matching some of that regExp or including some of that stringsrc/structures/Types/Manager.ts:282
nodesLavalinkNodeOptions[]The Node Options, for all Nodes! (on init)src/structures/Types/Manager.ts:262
playerClass?PlayerConstructor<CustomPlayerT>The player class you want to use when creating a player. (can be extendable)src/structures/Types/Manager.ts:272
playerOptions?ManagerPlayerOptions<CustomPlayerT>PlayerOptions for all Playerssrc/structures/Types/Manager.ts:270
queueOptions?ManagerQueueOptions<CustomPlayerT>QueueOptions for all Queuessrc/structures/Types/Manager.ts:268
sendToShard(guildId: string, payload: GuildShardPayload) => voidAsync The Function to send the voice connection changes from Lavalink to Discordsrc/structures/Types/Manager.ts:264