File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/dev/arbjerg/ukulele/command Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import org.springframework.stereotype.Component
88@Component
99class VolumeCommand : Command (" volume" , " v" ) {
1010 override suspend fun CommandContext.invoke () {
11- if (argumentText.isBlank()) return reply(" The volume is set to ${player.volume / 10.0 } %." )
11+ if (argumentText.isBlank()) return reply(" The volume is set to ${player.volume / 10 } %." )
1212
1313 val arg = argumentText.removeSuffix(" %" )
1414 var num: Int? = null
@@ -35,7 +35,7 @@ class VolumeCommand : Command("volume", "v") {
3535 if (num < 0 ) num = 0
3636 player.volume = num
3737
38- reply(" Changed volume from ${formerVolume / 10.0 } % to ${player.volume / 10.0 } %." )
38+ reply(" Changed volume from ${formerVolume / 10 } % to ${player.volume / 10 } %." )
3939 }
4040
4141 override fun HelpContext.provideHelp () {
You can’t perform that action at this time.
0 commit comments