mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-04-29 22:14:28 +02:00
refactor: apply clippy lint
This commit is contained in:
parent
88902ace64
commit
736f08fe6e
@ -125,12 +125,10 @@ pub async fn handle_message_response(ctx: &serenity::Context, new_message: &sere
|
|||||||
}
|
}
|
||||||
|
|
||||||
// only edit this thread if the message is the first one
|
// only edit this thread if the message is the first one
|
||||||
if channel_id
|
if !channel_id
|
||||||
.messages(&ctx.http, |b| b.limit(1).before(new_message))
|
.messages(&ctx.http, |b| b.limit(1).before(new_message))
|
||||||
.await
|
.await
|
||||||
.unwrap()
|
.unwrap().is_empty()
|
||||||
.len()
|
|
||||||
!= 0
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user