Skip to content

Commit

Permalink
Fix volume command not showing current volume
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Mar 7, 2024
1 parent 4b9389c commit f1f07bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
subprojects {
version = "3.5.8-SNAPSHOT"
version = "3.5.9-SNAPSHOT"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.schlaubi.mikmusic.commands

import com.kotlindiscord.kord.extensions.DiscordRelayedException
import com.kotlindiscord.kord.extensions.commands.Arguments
import com.kotlindiscord.kord.extensions.commands.converters.impl.optionalInt
import dev.schlaubi.mikmusic.core.MusicModule
Expand All @@ -9,12 +8,8 @@ class VolumeArguments : Arguments() {
val volume by optionalInt {
name = "volume"
description = "commands.volume.arguments.volume.description"

validate {
if (value !in 0..100) {
throw DiscordRelayedException(translate("commands.volume.invalid_range"))
}
}
maxValue = 100
minValue = 0
}
}

Expand Down

0 comments on commit f1f07bc

Please sign in to comment.