Interface: ManagerOptions
Represents a configuration object passed to the
Managerconstructor.
These options control core behavior such as node connections, autoplay logic, and plugin support.
Property Type Description Optional autoPlaySearchPlatformsAutoPlayPlatform[]Search platforms to use for autoplay, in priority order. Defaults to [AutoPlayPlatform.YouTube].clientIdstring Discord application's client ID. clientNamestring Value for the Client-Nameheader sent to Lavalink nodes. Defaults to"Magmastream". Leave empty for NodeLink.clusterIdnumber Index of the cluster this manager belongs to. Defaults to 0.defaultSearchPlatformSearchPlatformDefault platform for searches. Defaults to SearchPlatform.YouTube.enabledPluginsPlugin[]List of plugins to load. enablePriorityModeboolean Whether to enable priority mode over least player count or load balancing. Defaults to false.getGuildfunction Guild cache getter (id: string) => AnyGuild | undefined. Required when usingnew Manager(...)directly (seeStandaloneManagerOptions); optional for built-in wrappers which provide this automatically.getUserfunction User cache getter (id: string) => AnyUser | undefined. Required when usingnew Manager(...)directly (seeStandaloneManagerOptions); optional for built-in wrappers which provide this automatically.lastFmApiKeystring API key for Last.fm-based autoplay. Get one here. listenToSIGEventsboolean Whether to listen to SIGINTandSIGTERMfor graceful shutdown. Defaults totrue.maxPreviousTracksnumber Maximum number of previous tracks to store per player. Defaults to 20.nodesNodeOptions[]Lavalink nodes to connect to. normalizeYouTubeTitlesboolean Replace YouTube video titles when the author does not exactly match. Defaults to false.playNextOnEndboolean Automatically play the next track when the current one ends. Defaults to true.sendfunction Function used to send packets to Discord's WebSocket gateway. Required when not using a wrapper. stateStorageStateStorageOptionsWhere queue and player state is persisted. Defaults to StateStorageType.Memory.trackPartialTrackPartial[]Track properties to retain when building tracks. trackis always included.useNodeUseNodeOptionsNode selection strategy. Defaults to UseNodeOptions.LeastPlayers.