We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f584b23 commit 8edae46Copy full SHA for 8edae46
src/main/kotlin/dev/arbjerg/lavalink/internal/LavalinkRestClient.kt
@@ -79,6 +79,9 @@ class LavalinkRestClient(val node: LavalinkNode) {
79
fun getSession(): Mono<Session> {
80
return newRequest {
81
path("/v4/sessions/${node.sessionId}")
82
+ // Using patch with an empty object is a dirty hack because GET is not supported for this resource
83
+ // 7 years younger me should have known better ~Freya
84
+ patch("{}".toRequestBody("application/json".toMediaType()))
85
}.toMono()
86
}
87
0 commit comments