Skip to content

Commit

Permalink
Fix panic on start
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Jun 29, 2024
1 parent b4af4f8 commit a2911b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripty_bot_utils/src/handler/normal/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2911b3

Please sign in to comment.