Restrict play channels to voice channels

This commit is contained in:
jude 2022-11-21 13:39:03 +00:00
parent b8b17a504d
commit 208440a7ff

View File

@ -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<GuildChannel>,
) -> Result<(), Error> {
ctx.defer().await?;