Skip to main content
Version: v2.9.2

Interface: ManagerOptions

Represents a configuration object passed to the Manager constructor.
These options control core behavior such as node connections, autoplay logic, and plugin support.

Property Type Description Optional
playNextOnEndbooleanAutomatically play the next track when the current one ends. Defaults to true.
autoPlaySearchPlatformsAutoPlayPlatform[]Search platforms to use for autoplay, in priority order. Defaults to youtube.
clientIdstringDiscord application's client ID.
clientNamestringValue for the Client-Name header sent to Lavalink nodes. Defaults to "Magmastream/version"
clusterIdnumberIndex of the cluster this manager belongs to. Defaults to 0.
defaultSearchPlatformSearchPlatformDefault platform for searches. Defaults to ytsearch.
lastFmApiKeystringAPI key used for last.fm-based Autoplay. Get it here.
maxPreviousTracksnumberMaximum number of previous tracks to store. Defaults to 20.
nodesNodeOptions[]Lavalink nodes to connect to.
enabledPluginsPlugin[]List of plugins to enable.
normalizeYouTubeTitlesbooleanNormalize YouTube titles if author doesn’t match exactly. Defaults to false.
trackPartialTrackPartial[]Track properties to keep; track is always included.
useNodeUseNodeOptionsStrategy for selecting Lavalink nodes (e.g. least players). Defaults to Least players.
stateStorageStateStorageOptionsWhere queue state should be persisted (e.g. Memory, Redis, JSON). Defaults to Memory.
sendfunctionFunction used to send data to Discord’s WebSocket gateway.
enablePriorityModebooleanWhether to enable priority mode. Defaults to false.