chore: patch songbird to use 0.17 twilight dependencies
This commit is contained in:
@@ -3,7 +3,8 @@ use fomo_reducer::{CommandRouter, State, VCs, all_commands, initialize_vcs, upda
|
||||
use opendal::{IntoOperatorUri, Operator, OperatorUri};
|
||||
use secrecy::{ExposeSecret, SecretString};
|
||||
use snafu::Snafu;
|
||||
use std::{fmt::Debug, str::FromStr, sync::Arc};
|
||||
use songbird::shards::TwilightMap;
|
||||
use std::{collections::HashMap, fmt::Debug, str::FromStr, sync::Arc};
|
||||
use tracing_subscriber::{EnvFilter, fmt::format::FmtSpan};
|
||||
use twilight_gateway::{Event, EventTypeFlags, Intents, Shard, ShardId, StreamExt};
|
||||
use twilight_model::{
|
||||
@@ -109,6 +110,11 @@ async fn main() -> Result<(), MainError> {
|
||||
let intents = Intents::GUILD_VOICE_STATES;
|
||||
let mut shard = Shard::new(shard_id, discord_token.expose_secret().to_owned(), intents);
|
||||
|
||||
let senders = TwilightMap::new(FromIterator::from_iter([(
|
||||
shard.id().number(),
|
||||
shard.sender(),
|
||||
)]));
|
||||
|
||||
let event_types = EventTypeFlags::GUILD_VOICE_STATES | EventTypeFlags::INTERACTION_CREATE;
|
||||
let mut next_event = shard.next_event(event_types);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user