Skip to content

Commit 64aa0d5

Browse files
committed
int
1 parent 680f559 commit 64aa0d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/dev/arbjerg/ukulele/command/VolumeCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component
88
@Component
99
class 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() {

0 commit comments

Comments
 (0)