PlayerUpdateBuilder

Functions

Link copied to clipboard
fun build(): PlayerUpdate
Link copied to clipboard
open override fun omitEndTime(): PlayerUpdateBuilder

Omits the end time from being sent to the node during updates.

Link copied to clipboard
open override fun setEndTime(endTime: Long?): PlayerUpdateBuilder

Update the end time of the track.

Link copied to clipboard
open override fun setFilters(filters: Filters): PlayerUpdateBuilder

Update the filters for the player. Please use setVolume to update the player's volume instead. Setting the volume via filters is float based (1.0f is 100% volume) and takes the time of your buffer size to apply.

Link copied to clipboard
Link copied to clipboard
open override fun setPaused(paused: Boolean): PlayerUpdateBuilder

Update the paused state of the player.

Link copied to clipboard
open override fun setPosition(position: Long?): PlayerUpdateBuilder

Update the position of the player.

Link copied to clipboard
open override fun setTrack(track: Track?): PlayerUpdateBuilder

Shortcut for setting the encoded track. This will also send any user-data supplied. Please keep in mind that this will set the position field to the current position of the track.

Link copied to clipboard
open override fun setVoiceState(state: VoiceState): PlayerUpdateBuilder

Update the voice state for the player.
IMPORTANT: Only ever use Link.onVoiceServerUpdate to update the voice server as this sets the state of the link to LinkState.CONNECTING

Link copied to clipboard
open override fun setVolume(volume: Int): PlayerUpdateBuilder

Update the volume of the player. While you could use the filters to set volume as well, do note that that is float based (1.0f is 100% volume) and takes the time of your buffer size to apply. This method updates the volume instantly after the update is sent out.

Link copied to clipboard
open override fun stopTrack(): PlayerUpdateBuilder

Shortcut for setting the encoded track to {@code null}. This will also clear the user data.

Link copied to clipboard
open override fun subscribe(actual: CoreSubscriber<in LavalinkPlayer>)
Link copied to clipboard
open override fun updateTrack(update: PlayerUpdateTrack): PlayerUpdateBuilder

Allows you to set the track via the TrackUpdateBuilder. To stop the player, you can use stopTrack or setTrack with a null track.

Inherited functions

Link copied to clipboard
fun and(other: Publisher<*>?): Mono<Void?>?
Link copied to clipboard
fun <P : Any?> as(transformer: Function<in Mono<LavalinkPlayer?>?, P?>?): P?
Link copied to clipboard
@Nullable
open fun block(): LavalinkPlayer?
@Nullable
open fun block(timeout: Duration?): LavalinkPlayer?
Link copied to clipboard
Link copied to clipboard
fun cache(): Mono<LavalinkPlayer?>?
fun cache(ttl: Duration?): Mono<LavalinkPlayer?>?
fun cache(ttl: Duration?, timer: Scheduler?): Mono<LavalinkPlayer?>?
fun cache(ttlForValue: Function<in LavalinkPlayer?, Duration?>?, ttlForError: Function<Throwable?, Duration?>?, ttlForEmpty: Supplier<Duration?>?): Mono<LavalinkPlayer?>?
fun cache(ttlForValue: Function<in LavalinkPlayer?, Duration?>?, ttlForError: Function<Throwable?, Duration?>?, ttlForEmpty: Supplier<Duration?>?, timer: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun cacheInvalidateIf(invalidationPredicate: Predicate<in LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun cacheInvalidateWhen(invalidationTriggerGenerator: Function<in LavalinkPlayer?, Mono<Void?>?>?): Mono<LavalinkPlayer?>?
fun cacheInvalidateWhen(invalidationTriggerGenerator: Function<in LavalinkPlayer?, Mono<Void?>?>?, onInvalidate: Consumer<in LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun cancelOn(scheduler: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <E : Any?> cast(clazz: Class<E?>?): Mono<E?>?
Link copied to clipboard
fun checkpoint(): Mono<LavalinkPlayer?>?
fun checkpoint(description: String?): Mono<LavalinkPlayer?>?
fun checkpoint(@Nullable description: String?, forceStackTrace: Boolean): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun concatWith(other: Publisher<out LavalinkPlayer?>?): Flux<LavalinkPlayer?>?
Link copied to clipboard
Link copied to clipboard
fun contextWrite(contextModifier: Function<Context?, Context?>?): Mono<LavalinkPlayer?>?
fun contextWrite(contextToAppend: ContextView?): Mono<LavalinkPlayer?>?
Link copied to clipboard
Link copied to clipboard
fun delayElement(delay: Duration?): Mono<LavalinkPlayer?>?
fun delayElement(delay: Duration?, timer: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <U : Any?> delaySubscription(subscriptionDelay: Publisher<U?>?): Mono<LavalinkPlayer?>?
fun delaySubscription(delay: Duration?, timer: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun delayUntil(triggerProvider: Function<in LavalinkPlayer?, out Publisher<*>?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <X : Any?> dematerialize(): Mono<X?>?
Link copied to clipboard
fun doAfterTerminate(afterTerminate: Runnable?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doFinally(onFinally: Consumer<SignalType?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doFirst(onFirst: Runnable?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnCancel(onCancel: Runnable?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <R : Any?> doOnDiscard(type: Class<R?>?, discardHook: Consumer<in R?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnEach(signalConsumer: Consumer<in Signal<LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnError(onError: Consumer<in Throwable?>?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> doOnError(exceptionType: Class<E?>?, onError: Consumer<in E?>?): Mono<LavalinkPlayer?>?
fun doOnError(predicate: Predicate<in Throwable?>?, onError: Consumer<in Throwable?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnNext(onNext: Consumer<in LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnRequest(consumer: LongConsumer?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnSubscribe(onSubscribe: Consumer<in Subscription?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnSuccess(onSuccess: Consumer<in LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun doOnTerminate(onTerminate: Runnable?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun elapsed(): Mono<Tuple2<Long?, LavalinkPlayer?>?>?
fun elapsed(scheduler: Scheduler?): Mono<Tuple2<Long?, LavalinkPlayer?>?>?
Link copied to clipboard
fun expand(expander: Function<in LavalinkPlayer?, out Publisher<out LavalinkPlayer?>?>?): Flux<LavalinkPlayer?>?
fun expand(expander: Function<in LavalinkPlayer?, out Publisher<out LavalinkPlayer?>?>?, capacityHint: Int): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun expandDeep(expander: Function<in LavalinkPlayer?, out Publisher<out LavalinkPlayer?>?>?): Flux<LavalinkPlayer?>?
fun expandDeep(expander: Function<in LavalinkPlayer?, out Publisher<out LavalinkPlayer?>?>?, capacityHint: Int): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun filter(tester: Predicate<in LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun filterWhen(asyncPredicate: Function<in LavalinkPlayer?, out Publisher<Boolean?>?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <R : Any?> flatMap(transformer: Function<in LavalinkPlayer?, out Mono<out R?>?>?): Mono<R?>?
Link copied to clipboard
fun <R : Any?> flatMapIterable(mapper: Function<in LavalinkPlayer?, out Iterable<out R?>?>?): Flux<R?>?
Link copied to clipboard
fun <R : Any?> flatMapMany(mapper: Function<in LavalinkPlayer?, out Publisher<out R?>?>?): Flux<R?>?
fun <R : Any?> flatMapMany(mapperOnNext: Function<in LavalinkPlayer?, out Publisher<out R?>?>?, mapperOnError: Function<in Throwable?, out Publisher<out R?>?>?, mapperOnComplete: Supplier<out Publisher<out R?>?>?): Flux<R?>?
Link copied to clipboard
fun flux(): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun <R : Any?> handle(handler: BiConsumer<in LavalinkPlayer?, SynchronousSink<R?>?>?): Mono<R?>?
Link copied to clipboard
fun hasElement(): Mono<Boolean?>?
Link copied to clipboard
fun hide(): Mono<LavalinkPlayer?>?
Link copied to clipboard
Link copied to clipboard
fun log(): Mono<LavalinkPlayer?>?
fun log(@Nullable category: String?): Mono<LavalinkPlayer?>?
fun log(logger: Logger?): Mono<LavalinkPlayer?>?
fun log(@Nullable category: String?, level: Level?, vararg options: SignalType?): Mono<LavalinkPlayer?>?
fun log(@Nullable category: String?, level: Level?, showOperatorLine: Boolean, vararg options: SignalType?): Mono<LavalinkPlayer?>?
fun log(logger: Logger?, level: Level?, showOperatorLine: Boolean, vararg options: SignalType?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <R : Any?> map(mapper: Function<in LavalinkPlayer?, out R?>?): Mono<R?>?
Link copied to clipboard
fun <R : Any?> mapNotNull(mapper: Function<in LavalinkPlayer?, out R?>?): Mono<R?>?
Link copied to clipboard
fun materialize(): Mono<Signal<LavalinkPlayer?>?>?
Link copied to clipboard
fun mergeWith(other: Publisher<out LavalinkPlayer?>?): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun metrics(): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun name(name: String?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <U : Any?> ofType(clazz: Class<U?>?): Mono<U?>?
Link copied to clipboard
fun onErrorComplete(type: Class<out Throwable?>?): Mono<LavalinkPlayer?>?
fun onErrorComplete(predicate: Predicate<in Throwable?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun onErrorContinue(errorConsumer: BiConsumer<Throwable?, Any?>?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> onErrorContinue(type: Class<E?>?, errorConsumer: BiConsumer<Throwable?, Any?>?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> onErrorContinue(errorPredicate: Predicate<E?>?, errorConsumer: BiConsumer<Throwable?, Any?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun onErrorMap(mapper: Function<in Throwable?, out Throwable?>?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> onErrorMap(type: Class<E?>?, mapper: Function<in E?, out Throwable?>?): Mono<LavalinkPlayer?>?
fun onErrorMap(predicate: Predicate<in Throwable?>?, mapper: Function<in Throwable?, out Throwable?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun onErrorResume(fallback: Function<in Throwable?, out Mono<out LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> onErrorResume(type: Class<E?>?, fallback: Function<in E?, out Mono<out LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
fun onErrorResume(predicate: Predicate<in Throwable?>?, fallback: Function<in Throwable?, out Mono<out LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun onErrorReturn(fallbackValue: LavalinkPlayer?): Mono<LavalinkPlayer?>?
fun <E : Throwable?> onErrorReturn(type: Class<E?>?, fallbackValue: LavalinkPlayer?): Mono<LavalinkPlayer?>?
fun onErrorReturn(predicate: Predicate<in Throwable?>?, fallbackValue: LavalinkPlayer?): Mono<LavalinkPlayer?>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun or(other: Mono<out LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <R : Any?> publish(transform: Function<in Mono<LavalinkPlayer?>?, out Mono<out R?>?>?): Mono<R?>?
Link copied to clipboard
fun publishOn(scheduler: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun repeat(): Flux<LavalinkPlayer?>?
fun repeat(predicate: BooleanSupplier?): Flux<LavalinkPlayer?>?
fun repeat(numRepeat: Long): Flux<LavalinkPlayer?>?
fun repeat(numRepeat: Long, predicate: BooleanSupplier?): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun repeatWhen(repeatFactory: Function<Flux<Long?>?, out Publisher<*>?>?): Flux<LavalinkPlayer?>?
Link copied to clipboard
fun repeatWhenEmpty(repeatFactory: Function<Flux<Long?>?, out Publisher<*>?>?): Mono<LavalinkPlayer?>?
fun repeatWhenEmpty(maxRepeat: Int, repeatFactory: Function<Flux<Long?>?, out Publisher<*>?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun retry(): Mono<LavalinkPlayer?>?
fun retry(numRetries: Long): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun retryWhen(retrySpec: Retry?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun share(): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun single(): Mono<LavalinkPlayer?>?
Link copied to clipboard
Link copied to clipboard
fun subscribe(actual: Subscriber<in LavalinkPlayer?>?)
fun subscribe(): Disposable?
fun subscribe(consumer: Consumer<in LavalinkPlayer?>?): Disposable?
fun subscribe(@Nullable consumer: Consumer<in LavalinkPlayer?>?, errorConsumer: Consumer<in Throwable?>?): Disposable?
fun subscribe(@Nullable consumer: Consumer<in LavalinkPlayer?>?, @Nullable errorConsumer: Consumer<in Throwable?>?, @Nullable completeConsumer: Runnable?): Disposable?
fun subscribe(@Nullable consumer: Consumer<in LavalinkPlayer?>?, @Nullable errorConsumer: Consumer<in Throwable?>?, @Nullable completeConsumer: Runnable?, @Nullable subscriptionConsumer: Consumer<in Subscription?>?): Disposable?
fun subscribe(@Nullable consumer: Consumer<in LavalinkPlayer?>?, @Nullable errorConsumer: Consumer<in Throwable?>?, @Nullable completeConsumer: Runnable?, @Nullable initialContext: Context?): Disposable?
Link copied to clipboard
fun subscribeOn(scheduler: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun <E : Subscriber<in LavalinkPlayer?>?> subscribeWith(subscriber: E?): E?
Link copied to clipboard
fun switchIfEmpty(alternate: Mono<out LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun tag(key: String?, value: String?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun take(duration: Duration?): Mono<LavalinkPlayer?>?
fun take(duration: Duration?, timer: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun takeUntilOther(other: Publisher<*>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun tap(listenerGenerator: Function<ContextView?, SignalListener<LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
fun tap(simpleListenerGenerator: Supplier<SignalListener<LavalinkPlayer?>?>?): Mono<LavalinkPlayer?>?
fun tap(listenerFactory: SignalListenerFactory<LavalinkPlayer?, *>?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun then(): Mono<Void?>?
fun <V : Any?> then(other: Mono<V?>?): Mono<V?>?
Link copied to clipboard
fun thenEmpty(other: Publisher<Void?>?): Mono<Void?>?
Link copied to clipboard
fun <V : Any?> thenMany(other: Publisher<V?>?): Flux<V?>?
Link copied to clipboard
fun <V : Any?> thenReturn(value: V?): Mono<V?>?
Link copied to clipboard
fun timed(): Mono<Timed<LavalinkPlayer?>?>?
fun timed(clock: Scheduler?): Mono<Timed<LavalinkPlayer?>?>?
Link copied to clipboard
fun timeout(timeout: Duration?): Mono<LavalinkPlayer?>?
fun <U : Any?> timeout(firstTimeout: Publisher<U?>?): Mono<LavalinkPlayer?>?
fun timeout(timeout: Duration?, fallback: Mono<out LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
fun timeout(timeout: Duration?, timer: Scheduler?): Mono<LavalinkPlayer?>?
fun <U : Any?> timeout(firstTimeout: Publisher<U?>?, fallback: Mono<out LavalinkPlayer?>?): Mono<LavalinkPlayer?>?
fun timeout(timeout: Duration?, @Nullable fallback: Mono<out LavalinkPlayer?>?, timer: Scheduler?): Mono<LavalinkPlayer?>?
Link copied to clipboard
fun timestamp(): Mono<Tuple2<Long?, LavalinkPlayer?>?>?
fun timestamp(scheduler: Scheduler?): Mono<Tuple2<Long?, LavalinkPlayer?>?>?
Link copied to clipboard
Link copied to clipboard
fun <V : Any?> transform(transformer: Function<in Mono<LavalinkPlayer?>?, out Publisher<V?>?>?): Mono<V?>?
Link copied to clipboard
fun <V : Any?> transformDeferred(transformer: Function<in Mono<LavalinkPlayer?>?, out Publisher<V?>?>?): Mono<V?>?
Link copied to clipboard
fun <V : Any?> transformDeferredContextual(transformer: BiFunction<in Mono<LavalinkPlayer?>?, in ContextView?, out Publisher<V?>?>?): Mono<V?>?
Link copied to clipboard
fun <T2 : Any?> zipWhen(rightGenerator: Function<LavalinkPlayer?, Mono<out T2?>?>?): Mono<Tuple2<LavalinkPlayer?, T2?>?>?
fun <T2 : Any?, O : Any?> zipWhen(rightGenerator: Function<LavalinkPlayer?, Mono<out T2?>?>?, combinator: BiFunction<LavalinkPlayer?, T2?, O?>?): Mono<O?>?
Link copied to clipboard
fun <T2 : Any?> zipWith(other: Mono<out T2?>?): Mono<Tuple2<LavalinkPlayer?, T2?>?>?
fun <T2 : Any?, O : Any?> zipWith(other: Mono<out T2?>?, combinator: BiFunction<in LavalinkPlayer?, in T2?, out O?>?): Mono<O?>?