getSourceById

abstract fun getSourceById(@NotNull sourceId: @NotNull UUID, request: Boolean): Optional<ClientAudioSource<out Any>>

Gets a client audio source by its unique identifier.

Return

An optional containing the client audio source if found, or empty if not found.

Parameters

sourceId

The unique identifier of the source.

request

true to send a request if the source doesn't exist, false otherwise.