Deps: Update twilight to 0.13 (#147)

* update twilight to 0.13

* Update src/manager.rs

Co-authored-by: Kyle Simpson <kyleandrew.simpson@gmail.com>

Co-authored-by: Kyle Simpson <kyleandrew.simpson@gmail.com>
This commit is contained in:
Erk
2022-08-20 15:01:06 +00:00
committed by Kyle Simpson
parent 48db45ffd8
commit 372156e638
3 changed files with 8 additions and 7 deletions

View File

@@ -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;