permissions
This commit is contained in:
		| @@ -3,7 +3,7 @@ use songbird; | ||||
| use crate::{Context, Error}; | ||||
|  | ||||
| /// Stop the bot from playing and clear the play queue | ||||
| #[poise::command(slash_command, rename = "stop")] | ||||
| #[poise::command(slash_command, rename = "stop", required_permissions = "MANAGE_GUILD")] | ||||
| pub async fn stop_playing(ctx: Context<'_>) -> Result<(), Error> { | ||||
|     let songbird = songbird::get(ctx.discord()).await.unwrap(); | ||||
|     let call_opt = songbird.get(ctx.guild_id().unwrap()); | ||||
| @@ -20,7 +20,7 @@ pub async fn stop_playing(ctx: Context<'_>) -> Result<(), Error> { | ||||
| } | ||||
|  | ||||
| /// Disconnect the bot | ||||
| #[poise::command(slash_command)] | ||||
| #[poise::command(slash_command, required_permissions = "SPEAK")] | ||||
| pub async fn disconnect(ctx: Context<'_>) -> Result<(), Error> { | ||||
|     let songbird = songbird::get(ctx.discord()).await.unwrap(); | ||||
|     let _ = songbird.leave(ctx.guild_id().unwrap()).await; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user