From a2911b324dc856446a3051d145787e9f8ab6e30a Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 28 Jun 2024 23:16:16 -0600 Subject: [PATCH] Fix panic on start --- scripty_bot_utils/src/handler/normal/ready.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripty_bot_utils/src/handler/normal/ready.rs b/scripty_bot_utils/src/handler/normal/ready.rs index 9abb17a..8689ede 100644 --- a/scripty_bot_utils/src/handler/normal/ready.rs +++ b/scripty_bot_utils/src/handler/normal/ready.rs @@ -18,9 +18,7 @@ pub async fn ready( ) { set_cache_http(ctx.http.clone(), ctx.cache.clone()); - CLIENT_CACHE - .set(ctx.cache.clone()) - .expect("user data setup called more than once: bug?"); + let _ = CLIENT_CACHE.set(ctx.cache.clone()); let dm_support = DmSupportStatus::new(); let _ = DM_SUPPORT_GLOBAL.set(dm_support);