From e1d254b700d74a9248ce0c8608b89400a350ac8c Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Sat, 9 Dec 2023 23:50:36 +0000 Subject: [PATCH] Swap branch to serenity-next and fix first breakage --- Cargo.lock | 3 +-- Cargo.toml | 3 ++- examples/manual_dispatch/main.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1f7b810e628d..3bce27ddb476 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1326,8 +1326,7 @@ dependencies = [ [[package]] name = "serenity" version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385647faa24a889929028973650a4f158fb1b4272b2fcf94feb9fcc3c009e813" +source = "git+https://github.com/serenity-rs/serenity?branch=next#6981848992cb999a5fca4d6a96decad21f821bbf" dependencies = [ "arrayvec", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 77d9735db055..0a12397ee852 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,8 @@ parking_lot = "0.12.1" [dependencies.serenity] default-features = false features = ["builder", "client", "gateway", "model", "utils", "collector", "framework"] -version = "0.12.0" +git = "https://github.com/serenity-rs/serenity" +branch = "next" [dev-dependencies] # For the examples diff --git a/examples/manual_dispatch/main.rs b/examples/manual_dispatch/main.rs index f6595ae20a7f..b9b37115d343 100644 --- a/examples/manual_dispatch/main.rs +++ b/examples/manual_dispatch/main.rs @@ -52,7 +52,7 @@ async fn main() -> Result<(), Error> { let handler = std::sync::Arc::new(handler); let mut client = serenity::Client::builder(token, intents) - .event_handler_arc(handler.clone()) + .event_handler::(handler.clone()) .await?; *handler.shard_manager.lock().unwrap() = Some(client.shard_manager.clone());