ManagerPlayerOptions
Type: object
Parameter | Type | Required | Description |
---|---|---|---|
applyVolumeAsFilter | X | If set to true, it will use the Lavalink's filter.volume instead of lavalink.volume. | |
clientBasedPositionUpdateInterval | X | How frequently to update the player.position on the client side for more accurate position display, without requiring "more" cpu usage | |
defaultSearchPlatform | X | which SearchPlatform to use, when no Platform was provided doring player.search | |
volumeDecrementer | X | Decrement the Volume on the Lavalink server by a x % (decimal. aka decrement 70% => 0.7) | |
requesterTransformer | X | Transform the Requester User Object, to something you want, to reduce track-object-size aka save memory | |
onDisconnect | X | What the Manager should do when the Bot get's disconnected | |
onDisconnect.autoReconnect | X | Should the Manager try to reconnect the Bot? | |
onDisconnect.destroyPlayer | X | Or should the Manager directly Destroy the Player (overrides autoReconnect) | |
onEmptyQueue | X | What the Manager should do when the Queue get's empty | |
onEmptyQueue.destroyAfterMs | X | == 0 => Destroy Player immediately > 0 => Destroy Player after that amount (in Milliseconds) < 0 || NaN || undefined => Don't destroy the Player | |
onEmptyQueue.autoPlayFunction | X | ||
useUnresolvedData | X | If true, and you provide an unresolvedTrack, when resolving the Track, it overrides the real data with the provided data (to fake/enforce sources / titles, whatever) |
Example
Interface
Last updated