Skip to content

Commit

Permalink
/speed filter reset response updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ileukocyte committed Aug 31, 2022
1 parent 9f12086 commit f998407
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SpeedCommand : SlashOnlyCommand {
val speed = event.getOption("speed")?.asDouble
val pitch = event.getOption("pitch")?.asDouble

if (speed === null && pitch === null) {
if ((speed === null && pitch === null) || (speed == 1.0 && pitch == 0.0)) {
audioPlayer.scheduler.pitchOffset.set(0.0)
audioPlayer.scheduler.speedRate.set(1.0)

Expand Down

0 comments on commit f998407

Please sign in to comment.