refactor: lint

This commit is contained in:
oSumAtrIX 2022-08-21 22:51:12 +02:00
parent ef1ddf50fd
commit 29be605c22
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -305,7 +305,7 @@ pub async fn ban(
let ban_result = member let ban_result = member
.ban_with_reason( .ban_with_reason(
&ctx.discord().http, &ctx.discord().http,
cmp::min(dmd.or_else(|| Some(0)).unwrap(), 7), cmp::min(dmd.unwrap_or(0), 7),
reason, reason,
) )
.await; .await;