diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-05-08 10:28:04 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-05-08 14:16:01 -0400 |
| commit | fe467f60d99efa54f2ef64606e7d39b9b06d7294 (patch) | |
| tree | a62bb50fedb1959d1a155878f0ff0ab7b1f699b6 /src/audio/mod.rs | |
| parent | 48aa684dece2696e21fd871eb6f3825f28fe0200 (diff) | |
update all deps
Diffstat (limited to 'src/audio/mod.rs')
| -rw-r--r-- | src/audio/mod.rs | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/audio/mod.rs b/src/audio/mod.rs index 3c3041f..9affdb1 100644 --- a/src/audio/mod.rs +++ b/src/audio/mod.rs @@ -3,24 +3,20 @@ use std::sync::Arc; use chrono::Duration; use either::Either; use serenity::{ - client::bridge::voice::ClientVoiceManager, - model::{ - id::{ - ChannelId, - }, - }, + model::id::ChannelId, prelude::*, - voice::LockedAudio, }; use typemap::Key; -pub use self::play_queue::PlayQueue; -pub use self::timeutil::parse_times; -pub use self::ytdl::*; +pub use self::{ + play_queue::PlayQueue, + timeutil::parse_times, + ytdl::*, +}; +mod play_queue; mod timeutil; mod ytdl; -mod play_queue; pub struct VoiceManager; @@ -37,15 +33,15 @@ impl VoiceManager { #[derive(Clone, Debug)] pub struct PlayArgs { - pub data: Either<String, Vec<u8>>, - pub initiator: String, + pub data: Either<String, Vec<u8>>, + pub initiator: String, pub sender_channel: ChannelId, - pub start: Option<Duration>, - pub end: Option<Duration>, + pub start: Option<Duration>, + pub end: Option<Duration>, } #[derive(Clone)] pub struct CurrentItem { pub init_args: PlayArgs, - pub audio: LockedAudio, + pub audio: LockedAudio, } |
