Restrict play channels to voice channels
This commit is contained in:
		@@ -16,9 +16,9 @@ pub async fn play(
 | 
				
			|||||||
    #[description = "Name or ID of sound to play"]
 | 
					    #[description = "Name or ID of sound to play"]
 | 
				
			||||||
    #[autocomplete = "autocomplete_sound"]
 | 
					    #[autocomplete = "autocomplete_sound"]
 | 
				
			||||||
    name: String,
 | 
					    name: String,
 | 
				
			||||||
    #[description = "Channel to play in (default: your current voice channel)"] channel: Option<
 | 
					    #[description = "Channel to play in (default: your current voice channel)"]
 | 
				
			||||||
        GuildChannel,
 | 
					    #[channel_types("Voice")]
 | 
				
			||||||
    >,
 | 
					    channel: Option<GuildChannel>,
 | 
				
			||||||
) -> Result<(), Error> {
 | 
					) -> Result<(), Error> {
 | 
				
			||||||
    ctx.defer().await?;
 | 
					    ctx.defer().await?;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user