From 208440a7ffd685ef8bf6fecef780a69502656d1a Mon Sep 17 00:00:00 2001 From: jude Date: Mon, 21 Nov 2022 13:39:03 +0000 Subject: [PATCH] Restrict play channels to voice channels --- src/cmds/play.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmds/play.rs b/src/cmds/play.rs index a372be5..4b4a4c4 100644 --- a/src/cmds/play.rs +++ b/src/cmds/play.rs @@ -16,9 +16,9 @@ pub async fn play( #[description = "Name or ID of sound to play"] #[autocomplete = "autocomplete_sound"] name: String, - #[description = "Channel to play in (default: your current voice channel)"] channel: Option< - GuildChannel, - >, + #[description = "Channel to play in (default: your current voice channel)"] + #[channel_types("Voice")] + channel: Option, ) -> Result<(), Error> { ctx.defer().await?;