From 405fa08c2fe2c0078d7f61a37fe5ccbfacbc4c33 Mon Sep 17 00:00:00 2001 From: jude Date: Sat, 14 May 2022 10:33:41 +0100 Subject: [PATCH] defer play --- src/cmds/play.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmds/play.rs b/src/cmds/play.rs index 75184d7..17197c6 100644 --- a/src/cmds/play.rs +++ b/src/cmds/play.rs @@ -17,6 +17,8 @@ pub async fn play( #[autocomplete = "autocomplete_sound"] name: String, ) -> Result<(), Error> { + ctx.defer().await?; + let guild = ctx.guild().unwrap(); ctx.say( @@ -115,7 +117,7 @@ pub async fn queue_play( #[autocomplete = "autocomplete_sound"] sound_25: Option, ) -> Result<(), Error> { - let _ = ctx.defer().await; + ctx.defer().await?; let guild = ctx.guild().unwrap(); @@ -204,6 +206,8 @@ pub async fn loop_play( #[autocomplete = "autocomplete_sound"] name: String, ) -> Result<(), Error> { + ctx.defer().await?; + let guild = ctx.guild().unwrap(); ctx.say(