commonMain.rest.Route.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sponsorblock-jvm Show documentation
Show all versions of sponsorblock-jvm Show documentation
Coroutine based client for Lavalink (Kotlin and Java)
@file:Suppress("KDocMissingDocumentation")
package dev.schlaubi.lavakord.plugins.sponsorblock.rest
import dev.schlaubi.lavakord.rest.routes.V4Api
import io.ktor.resources.*
@Resource("sponsorblock")
public data class SponsorblockRoute(val player: V4Api.Sessions.Specific.Players.Specific) {
public constructor(guildId: ULong, sessionId: String, noReplace: Boolean? = false) : this(
V4Api.Sessions.Specific.Players.Specific(
guildId,
noReplace,
V4Api.Sessions.Specific.Players(sessionId)
)
)
@Resource("categories")
public data class Categories(val parent: SponsorblockRoute) {
public constructor(guildId: ULong, sessionId: String, noReplace: Boolean? = false) : this(
SponsorblockRoute(
guildId,
sessionId, noReplace
)
)
}
}