PlayerUpdateBuilder

Functions

Link copied to clipboard
fun and(p0: Publisher<*>): Mono<Void>
Link copied to clipboard
fun <P : Any> as(p0: Function<in Mono<LavalinkPlayer>, P>): P
Link copied to clipboard
@Nullable
open fun block(): LavalinkPlayer
@Nullable
open fun block(p0: Duration): LavalinkPlayer
Link copied to clipboard
Link copied to clipboard
fun build(): PlayerUpdate
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun cancelOn(p0: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun <E : Any> cast(p0: Class<E>): Mono<E>
Link copied to clipboard
fun checkpoint(@Nullable p0: String, p1: Boolean): Mono<LavalinkPlayer>
Link copied to clipboard
fun concatWith(p0: Publisher<out LavalinkPlayer>): Flux<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
fun contextWrite(p0: Function<Context, Context>): Mono<LavalinkPlayer>
fun contextWrite(p0: ContextView): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
fun delayElement(p0: Duration, p1: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun <U : Any> delaySubscription(p0: Publisher<U>): Mono<LavalinkPlayer>
fun delaySubscription(p0: Duration, p1: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun delayUntil(p0: Function<in LavalinkPlayer, out Publisher<*>>): Mono<LavalinkPlayer>
Link copied to clipboard
fun <X : Any> dematerialize(): Mono<X>
Link copied to clipboard
Link copied to clipboard
fun doFinally(p0: Consumer<SignalType>): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <R : Any> doOnDiscard(p0: Class<R>, p1: Consumer<in R>): Mono<LavalinkPlayer>
Link copied to clipboard
fun doOnEach(p0: Consumer<in Signal<LavalinkPlayer>>): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun doOnSubscribe(p0: Consumer<in Subscription>): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun elapsed(): Mono<Tuple2<Long, LavalinkPlayer>>
fun elapsed(p0: Scheduler): Mono<Tuple2<Long, LavalinkPlayer>>
Link copied to clipboard
fun expand(p0: Function<in LavalinkPlayer, out Publisher<out LavalinkPlayer>>): Flux<LavalinkPlayer>
fun expand(p0: Function<in LavalinkPlayer, out Publisher<out LavalinkPlayer>>, p1: Int): Flux<LavalinkPlayer>
Link copied to clipboard
fun expandDeep(p0: Function<in LavalinkPlayer, out Publisher<out LavalinkPlayer>>): Flux<LavalinkPlayer>
fun expandDeep(p0: Function<in LavalinkPlayer, out Publisher<out LavalinkPlayer>>, p1: Int): Flux<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
fun filterWhen(p0: Function<in LavalinkPlayer, out Publisher<Boolean>>): Mono<LavalinkPlayer>
Link copied to clipboard
fun <R : Any> flatMap(p0: Function<in LavalinkPlayer, out Mono<out R>>): Mono<R>
Link copied to clipboard
Link copied to clipboard
fun <R : Any> flatMapMany(p0: Function<in LavalinkPlayer, out Publisher<out R>>): Flux<R>
fun <R : Any> flatMapMany(p0: Function<in LavalinkPlayer, out Publisher<out R>>, p1: Function<in Throwable, out Publisher<out R>>, p2: Supplier<out Publisher<out R>>): Flux<R>
Link copied to clipboard
fun flux(): Flux<LavalinkPlayer>
Link copied to clipboard
fun <R : Any> handle(p0: 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 p0: String): Mono<LavalinkPlayer>
fun log(p0: Logger): Mono<LavalinkPlayer>
fun log(@Nullable p0: String, p1: Level, vararg p2: SignalType): Mono<LavalinkPlayer>
fun log(@Nullable p0: String, p1: Level, p2: Boolean, vararg p3: SignalType): Mono<LavalinkPlayer>
fun log(p0: Logger, p1: Level, p2: Boolean, vararg p3: SignalType): Mono<LavalinkPlayer>
Link copied to clipboard
fun <R : Any> map(p0: Function<in LavalinkPlayer, out R>): Mono<R>
Link copied to clipboard
fun <R : Any> mapNotNull(p0: Function<in LavalinkPlayer, out R>): Mono<R>
Link copied to clipboard
fun materialize(): Mono<Signal<LavalinkPlayer>>
Link copied to clipboard
fun mergeWith(p0: Publisher<out LavalinkPlayer>): Flux<LavalinkPlayer>
Link copied to clipboard
fun metrics(): Mono<LavalinkPlayer>
Link copied to clipboard
fun name(p0: String): Mono<LavalinkPlayer>
Link copied to clipboard
fun <U : Any> ofType(p0: Class<U>): Mono<U>
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
Link copied to clipboard
fun onErrorResume(p0: Function<in Throwable, out Mono<out LavalinkPlayer>>): Mono<LavalinkPlayer>
fun <E : Throwable> onErrorResume(p0: Class<E>, p1: Function<in E, out Mono<out LavalinkPlayer>>): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun or(p0: Mono<out LavalinkPlayer>): Mono<LavalinkPlayer>
Link copied to clipboard
fun <R : Any> publish(p0: Function<in Mono<LavalinkPlayer>, out Mono<out R>>): Mono<R>
Link copied to clipboard
fun publishOn(p0: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
Link copied to clipboard
fun repeatWhen(p0: Function<Flux<Long>, out Publisher<*>>): Flux<LavalinkPlayer>
Link copied to clipboard
fun repeatWhenEmpty(p0: Function<Flux<Long>, out Publisher<*>>): Mono<LavalinkPlayer>
fun repeatWhenEmpty(p0: Int, p1: Function<Flux<Long>, out Publisher<*>>): Mono<LavalinkPlayer>
Link copied to clipboard
fun retry(): Mono<LavalinkPlayer>
fun retry(p0: Long): Mono<LavalinkPlayer>
Link copied to clipboard
fun retryWhen(p0: Retry): Mono<LavalinkPlayer>
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
fun share(): Mono<LavalinkPlayer>
Link copied to clipboard
fun single(): Mono<LavalinkPlayer>
Link copied to clipboard
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>)
fun subscribe(): Disposable
fun subscribe(p0: Consumer<in LavalinkPlayer>): Disposable
override fun subscribe(p0: Subscriber<in LavalinkPlayer>)
fun subscribe(@Nullable p0: Consumer<in LavalinkPlayer>, p1: Consumer<in Throwable>): Disposable
fun subscribe(@Nullable p0: Consumer<in LavalinkPlayer>, @Nullable p1: Consumer<in Throwable>, @Nullable p2: Runnable): Disposable
fun subscribe(@Nullable p0: Consumer<in LavalinkPlayer>, @Nullable p1: Consumer<in Throwable>, @Nullable p2: Runnable, @Nullable p3: Consumer<in Subscription>): Disposable
fun subscribe(@Nullable p0: Consumer<in LavalinkPlayer>, @Nullable p1: Consumer<in Throwable>, @Nullable p2: Runnable, @Nullable p3: Context): Disposable
Link copied to clipboard
fun subscribeOn(p0: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun <E : Subscriber<in LavalinkPlayer>> subscribeWith(p0: E): E
Link copied to clipboard
fun switchIfEmpty(p0: Mono<out LavalinkPlayer>): Mono<LavalinkPlayer>
Link copied to clipboard
fun tag(p0: String, p1: String): Mono<LavalinkPlayer>
Link copied to clipboard
fun take(p0: Duration): Mono<LavalinkPlayer>
fun take(p0: Duration, p1: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun takeUntilOther(p0: Publisher<*>): Mono<LavalinkPlayer>
Link copied to clipboard
fun tap(p0: Function<ContextView, SignalListener<LavalinkPlayer>>): Mono<LavalinkPlayer>
fun tap(p0: Supplier<SignalListener<LavalinkPlayer>>): Mono<LavalinkPlayer>
fun tap(p0: SignalListenerFactory<LavalinkPlayer, *>): Mono<LavalinkPlayer>
Link copied to clipboard
fun then(): Mono<Void>
fun <V : Any> then(p0: Mono<V>): Mono<V>
Link copied to clipboard
fun thenEmpty(p0: Publisher<Void>): Mono<Void>
Link copied to clipboard
fun <V : Any> thenMany(p0: Publisher<V>): Flux<V>
Link copied to clipboard
fun <V : Any> thenReturn(p0: V): Mono<V>
Link copied to clipboard
fun timed(): Mono<Timed<LavalinkPlayer>>
fun timed(p0: Scheduler): Mono<Timed<LavalinkPlayer>>
Link copied to clipboard
fun <U : Any> timeout(p0: Publisher<U>): Mono<LavalinkPlayer>
fun timeout(p0: Duration, p1: Mono<out LavalinkPlayer>): Mono<LavalinkPlayer>
fun timeout(p0: Duration, p1: Scheduler): Mono<LavalinkPlayer>
fun <U : Any> timeout(p0: Publisher<U>, p1: Mono<out LavalinkPlayer>): Mono<LavalinkPlayer>
fun timeout(p0: Duration, @Nullable p1: Mono<out LavalinkPlayer>, p2: Scheduler): Mono<LavalinkPlayer>
Link copied to clipboard
fun timestamp(): Mono<Tuple2<Long, LavalinkPlayer>>
fun timestamp(p0: Scheduler): Mono<Tuple2<Long, LavalinkPlayer>>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun <V : Any> transform(p0: Function<in Mono<LavalinkPlayer>, out Publisher<V>>): Mono<V>
Link copied to clipboard
fun <V : Any> transformDeferred(p0: Function<in Mono<LavalinkPlayer>, out Publisher<V>>): Mono<V>
Link copied to clipboard
fun <V : Any> transformDeferredContextual(p0: BiFunction<in Mono<LavalinkPlayer>, in ContextView, out Publisher<V>>): Mono<V>
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.

Link copied to clipboard
fun <T2 : Any> zipWhen(p0: Function<LavalinkPlayer, Mono<out T2>>): Mono<Tuple2<LavalinkPlayer, T2>>
fun <T2 : Any, O : Any> zipWhen(p0: Function<LavalinkPlayer, Mono<out T2>>, p1: BiFunction<LavalinkPlayer, T2, O>): Mono<O>
Link copied to clipboard
fun <T2 : Any> zipWith(p0: Mono<out T2>): Mono<Tuple2<LavalinkPlayer, T2>>
fun <T2 : Any, O : Any> zipWith(p0: Mono<out T2>, p1: BiFunction<in LavalinkPlayer, in T2, out O>): Mono<O>