Core: use std::time::Duration

This commit is contained in:
Natsu Kagami 2020-09-03 20:32:31 -04:00
parent b5424c0087
commit 256ed3fe7c
Signed by: nki
GPG key ID: 73376E117CD20735

View file

@ -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;
}