Skip to content

Commit

Permalink
Deps: Update twilight to 0.13 (#147)
Browse files Browse the repository at this point in the history
* update twilight to 0.13

* Update src/manager.rs

Co-authored-by: Kyle Simpson <[email protected]>

Co-authored-by: Kyle Simpson <[email protected]>
  • Loading branch information
Erk- and FelixMcFelix committed Nov 20, 2023
1 parent 48db45f commit 372156e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ tokio-tungstenite = { optional = true, version = "0.17" }
tokio-util = { features = ["io"], optional = true, version = "0.7" }
tracing = { version = "0.1", features = ["log"] }
tracing-futures = "0.2"
twilight-gateway = { default-features = false, optional = true, version = "0.12.0" }
twilight-model = { default-features = false, optional = true, version = "0.12.0" }
twilight-gateway = { default-features = false, optional = true, version = "0.13.0" }
twilight-model = { default-features = false, optional = true, version = "0.13.0" }
typemap_rev = { optional = true, version = "0.1" }
url = { optional = true, version = "2" }
uuid = { features = ["v4"], optional = true, version = "1" }
Expand Down
8 changes: 4 additions & 4 deletions examples/twilight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ reqwest = "0.11"
tracing = "0.1"
tracing-subscriber = "0.2"
tokio = { features = ["macros", "rt-multi-thread", "sync"], version = "1" }
twilight-gateway = "0.12"
twilight-http = "0.12"
twilight-model = "0.12"
twilight-standby = "0.12"
twilight-gateway = "0.13"
twilight-http = "0.13"
twilight-model = "0.13"
twilight-standby = "0.13"

[dependencies.songbird]
default-features = false
Expand Down
3 changes: 2 additions & 1 deletion src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ impl Songbird {
pub async fn process(&self, event: &TwilightEvent) {
match event {
TwilightEvent::VoiceServerUpdate(v) => {
let call = v.guild_id.map(GuildId::from).and_then(|id| self.get(id));
let id = GuildId::from(v.guild_id);
let call = self.get(id);

if let Some(call) = call {
let mut handler = call.lock().await;
Expand Down

0 comments on commit 372156e

Please sign in to comment.