diff options
Diffstat (limited to 'src/commands/playback.rs')
| -rw-r--r-- | src/commands/playback.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/playback.rs b/src/commands/playback.rs index 70dd704..9b74c02 100644 --- a/src/commands/playback.rs +++ b/src/commands/playback.rs @@ -5,10 +5,7 @@ use log::{ info, warn, }; -use serenity::{ - all::ReactionType, - prelude::*, -}; +use serenity::prelude::*; use songbird::{ input::YoutubeDl, Call, @@ -66,6 +63,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> return Ok(()); } + util::react(ctx, '🔃').await?; + let (_sb, call) = songbird(ctx).await?; let mut call = call.lock().await; @@ -82,7 +81,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> YoutubeDl::new_ytdl_like(&crate::config::YTDL_COMMAND, client.clone(), url.to_string()); call.enqueue_input(input.into()).await; - util::react(ctx, ReactionType::Unicode("📣".to_owned())).await?; + util::react(ctx, '📣').await?; + util::unreact(ctx, '🔃').await?; Ok(()) } |
