Skip to content

Commit fdf2028

Browse files
committed
update koe to 2.0.3-rc2 & use voice gateway v8
1 parent 7797be3 commit fdf2028

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

LavalinkServer/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies {
5151
exclude(group = "org.slf4j", module = "slf4j-api")
5252
}
5353
implementation(libs.koe.udpqueue) {
54-
exclude(module="udp-queue")
54+
exclude(module = "lava-common")
5555
}
5656
implementation(libs.bundles.udpqueue.natives) {
5757
exclude(group = "com.sedmelluq", module = "lava-common")

LavalinkServer/src/main/java/lavalink/server/config/KoeConfiguration.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import com.sedmelluq.lava.common.natives.architecture.DefaultOperatingSystemType
55
import com.sedmelluq.lava.common.natives.architecture.SystemType
66
import moe.kyokobot.koe.KoeOptions
77
import moe.kyokobot.koe.codec.udpqueue.UdpQueueFramePollerFactory
8+
import moe.kyokobot.koe.gateway.GatewayVersion
89
import org.slf4j.Logger
910
import org.slf4j.LoggerFactory
1011
import org.springframework.context.annotation.Bean
@@ -32,6 +33,8 @@ class KoeConfiguration(val serverConfig: ServerConfig) {
3233

3334
@Bean
3435
fun koeOptions(): KoeOptions = KoeOptions.builder().apply {
36+
setGatewayVersion(GatewayVersion.V8)
37+
3538
val systemType: SystemType? = try {
3639
SystemType(DefaultArchitectureTypes.detect(), DefaultOperatingSystemTypes.detect())
3740
} catch (e: IllegalArgumentException) {
@@ -70,4 +73,4 @@ class KoeConfiguration(val serverConfig: ServerConfig) {
7073
)
7174
}
7275
}.create()
73-
}
76+
}

settings.gradle.kts

+2-9
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencyResolutionManagement {
1616
voice()
1717
metrics()
1818
common()
19-
other()
2019
}
2120
}
2221
}
@@ -42,8 +41,8 @@ fun VersionCatalogBuilder.voice() {
4241
library("lavaplayer-ip-rotator", "dev.arbjerg", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer")
4342
library("lavadsp", "dev.arbjerg", "lavadsp").version("0.7.8")
4443

45-
library("koe", "moe.kyokobot.koe", "core").version("2.0.2")
46-
library("koe-udpqueue", "moe.kyokobot.koe", "ext-udpqueue").version("2.0.2")
44+
library("koe", "moe.kyokobot.koe", "core").version("2.0.3-rc2")
45+
library("koe-udpqueue", "moe.kyokobot.koe", "ext-udpqueue").version("2.0.3-rc2")
4746

4847
version("udpqueue", "0.2.7")
4948
val platforms = listOf("linux-x86-64", "linux-x86", "linux-aarch64", "linux-arm", "linux-musl-x86-64", "linux-musl-aarch64", "win-x86-64", "win-x86", "darwin")
@@ -78,9 +77,3 @@ fun VersionCatalogBuilder.common() {
7877

7978
library("spotbugs", "com.github.spotbugs", "spotbugs-annotations").version("3.1.6")
8079
}
81-
82-
83-
fun VersionCatalogBuilder.other() {
84-
library("jda", "net.dv8tion", "JDA").version("4.1.1_135")
85-
library("lavalink-client", "com.github.FredBoat", "Lavalink-Client").version("8d9b660")
86-
}

0 commit comments

Comments
 (0)