mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-01 15:04:25 +02:00
refactor: lint
This commit is contained in:
parent
ef1ddf50fd
commit
29be605c22
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user