ManagerPlayerOptions
Sub Manager Options, for player specific things
Properties
Property | Type | Description | Defined in |
---|---|---|---|
applyVolumeAsFilter? | boolean | Applies the volume via a filter, not via the lavalink volume transformer | src/structures/Types/Manager.ts:211 |
clientBasedPositionUpdateInterval? | number | How often it should update the the player Position | src/structures/Types/Manager.ts:207 |
defaultSearchPlatform? | SearchPlatform | What should be used as a searchPlatform, if no source was provided during the query | src/structures/Types/Manager.ts:209 |
maxErrorsPerTime? | object | Allows you to declare how many tracks are allowed to error/stuck within a time-frame before player is destroyed Default "{threshold: 35000, maxAmount: 3 }" | src/structures/Types/Manager.ts:224 |
maxErrorsPerTime.maxAmount | number | The max amount of errors within the threshold time which are allowed before destroying the player (when errors > maxAmount -> player.destroy()) | src/structures/Types/Manager.ts:228 |
maxErrorsPerTime.threshold | number | The threshold time to count errors (recommended is 35s) | src/structures/Types/Manager.ts:226 |
minAutoPlayMs? | number | Minimum time to play the song before autoPlayFunction is executed (prevents error spamming) Set to 0 to disable it Default 10000 | src/structures/Types/Manager.ts:222 |
onDisconnect? | object | What lavalink-client should do when the player reconnects | src/structures/Types/Manager.ts:215 |
onDisconnect.autoReconnect? | boolean | Try to reconnect? -> If fails -> Destroy | src/structures/Types/Manager.ts:217 |
onDisconnect.destroyPlayer? | boolean | Instantly destroy player (overrides autoReconnect) | Don’t provide == disable feature |
onEmptyQueue? | object | - | src/structures/Types/Manager.ts:231 |
onEmptyQueue.autoPlayFunction? | (player : Player , lastPlayedTrack : Track ) => Promise <void > | Get’s executed onEmptyQueue -> You can do any track queue previous transformations, if you add a track to the queue -> it will play it, if not queueEnd will execute! | src/structures/Types/Manager.ts:233 |
onEmptyQueue.destroyAfterMs? | number | - | src/structures/Types/Manager.ts:235 |
requesterTransformer? | (requester : unknown ) => unknown | Transforms the saved data of a requested user | src/structures/Types/Manager.ts:213 |
useUnresolvedData? | boolean | - | src/structures/Types/Manager.ts:238 |
volumeDecrementer? | number | If the Lavalink Volume should be decremented by x number | src/structures/Types/Manager.ts:205 |