mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 16:28:55 +00:00
Core: use std::time::Duration
This commit is contained in:
parent
b5424c0087
commit
256ed3fe7c
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ async fn clean(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
|
|||
};
|
||||
msg.react(&ctx, '🌋').await?;
|
||||
if let Channel::Guild(_) = &channel {
|
||||
tokio::time::delay_for(Duration::from_secs(2)).await;
|
||||
tokio::time::delay_for(std::time::Duration::from_secs(2)).await;
|
||||
msg.delete(&ctx).await;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue