mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-01 06:54:27 +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
|
||||
.ban_with_reason(
|
||||
&ctx.discord().http,
|
||||
cmp::min(dmd.or_else(|| Some(0)).unwrap(), 7),
|
||||
cmp::min(dmd.unwrap_or(0), 7),
|
||||
reason,
|
||||
)
|
||||
.await;
|
||||
|
Loading…
x
Reference in New Issue
Block a user