From 3a180ef8ceffa32a6198c72b6627b0da22b5e8da Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 29 Jun 2024 21:08:36 +0200 Subject: [PATCH] Remove unused parameter from sponsorblock plugin --- build.gradle.kts | 2 +- plugins/sponsorblock/src/commonMain/kotlin/rest/Route.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d14c6276..36c6a813 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { } group = "dev.schlaubi.lavakord" -version = "6.3.0" +version = "6.3.1" allprojects { repositories { diff --git a/plugins/sponsorblock/src/commonMain/kotlin/rest/Route.kt b/plugins/sponsorblock/src/commonMain/kotlin/rest/Route.kt index 7cad2478..e5f1c748 100644 --- a/plugins/sponsorblock/src/commonMain/kotlin/rest/Route.kt +++ b/plugins/sponsorblock/src/commonMain/kotlin/rest/Route.kt @@ -7,20 +7,20 @@ 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( + public constructor(guildId: ULong, sessionId: String) : this( V4Api.Sessions.Specific.Players.Specific( guildId, - noReplace, + null, V4Api.Sessions.Specific.Players(sessionId) ) ) @Resource("categories") public data class Categories(val parent: SponsorblockRoute) { - public constructor(guildId: ULong, sessionId: String, noReplace: Boolean? = false) : this( + public constructor(guildId: ULong, sessionId: String) : this( SponsorblockRoute( guildId, - sessionId, noReplace + sessionId ) ) }