diff options
| author | Nathan Perry <avaglir@gmail.com> | 2019-01-24 20:03:25 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2019-01-24 20:03:25 -0500 |
| commit | 1a8a6eca29afe2178c6cf17abce9ab7e229ca26c (patch) | |
| tree | 15f15250ab2bc940dc5b64b26729183a7c4e39e0 /src/commands/playback/mod.rs | |
| parent | 928fd4314db88c623ea991de4e6e669027f57848 (diff) | |
improve imports further and fix compile warnings
Diffstat (limited to 'src/commands/playback/mod.rs')
| -rw-r--r-- | src/commands/playback/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/playback/mod.rs b/src/commands/playback/mod.rs index efb2553..83732f2 100644 --- a/src/commands/playback/mod.rs +++ b/src/commands/playback/mod.rs @@ -1,11 +1,12 @@ use either::{Left, Right}; use serenity::{ - voice::{LockedAudio, ytdl}, - model::id::ChannelId, framework::standard::Args, + model::id::ChannelId, + voice::{LockedAudio, ytdl}, }; use super::*; + pub use self::types::*; mod types; @@ -24,7 +25,7 @@ impl CtxExt for Context { fn users_listening(&self) -> Result<bool> { let channel_id = ChannelId(must_env_lookup::<u64>("VOICE_CHANNEL")); - let channel = channel_id.get()?; + let channel = channel_id.to_channel()?; let res = channel.guild() .and_then(|ch| ch.read().guild()) .map(|g| (&g.read().voice_states) |
