diff --git a/src/bot/commands/rating.rs b/src/bot/commands/rating.rs index 64c16d2..30d7f2f 100644 --- a/src/bot/commands/rating.rs +++ b/src/bot/commands/rating.rs @@ -126,7 +126,7 @@ impl MixerCommand for RatingCommand { .as_u64() .unwrap(); - if rating < 1 || rating > 5000 { + if !(1..=5000).contains(&rating) { interaction .create_interaction_response(ctx, |response| { response