replace boundary check with range contains
This commit is contained in:
@@ -126,7 +126,7 @@ impl MixerCommand for RatingCommand {
|
|||||||
.as_u64()
|
.as_u64()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
if rating < 1 || rating > 5000 {
|
if !(1..=5000).contains(&rating) {
|
||||||
interaction
|
interaction
|
||||||
.create_interaction_response(ctx, |response| {
|
.create_interaction_response(ctx, |response| {
|
||||||
response
|
response
|
||||||
|
|||||||
Reference in New Issue
Block a user