From 256ed3fe7ce07f238ee97297dc511b52e80cf925 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 3 Sep 2020 20:32:31 -0400 Subject: [PATCH] Core: use std::time::Duration --- youmubot-core/src/admin/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youmubot-core/src/admin/mod.rs b/youmubot-core/src/admin/mod.rs index 4862aa7..c9bcfa0 100644 --- a/youmubot-core/src/admin/mod.rs +++ b/youmubot-core/src/admin/mod.rs @@ -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; }