All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.rest.Route.kt Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
@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
            )
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy