block commands in DM

This commit is contained in:
claude Bot committed 2022-05-21 17:04:04 +01:00
1 parent 651ad9dffe
commit f3c6db036e
5 files changed
+57 -20

No files matched your search

+15 -4
View File
@@ -10,7 +10,7 @@ use crate::{
};
/// Play a sound in your current voice channel
#[poise::command(slash_command, default_member_permissions = "SPEAK")]
#[poise::command(slash_command, default_member_permissions = "SPEAK", guild_only = true)]
pub async fn play(
ctx: Context<'_>,
#[description = "Name or ID of sound to play"]
@@ -38,7 +38,12 @@ pub async fn play(
}
/// Play up to 25 sounds on queue
#[poise::command(slash_command, rename = "queue", default_member_permissions = "SPEAK")]
#[poise::command(
slash_command,
rename = "queue",
default_member_permissions = "SPEAK",
guild_only = true
)]
pub async fn queue_play(
ctx: Context<'_>,
#[description = "Name or ID for queue position 1"]
@@ -199,7 +204,12 @@ pub async fn queue_play(
}
/// Loop a sound in your current voice channel
#[poise::command(slash_command, rename = "loop", default_member_permissions = "SPEAK")]
#[poise::command(
slash_command,
rename = "loop",
default_member_permissions = "SPEAK",
guild_only = true
)]
pub async fn loop_play(
ctx: Context<'_>,
#[description = "Name or ID of sound to loop"]
@@ -231,7 +241,8 @@ pub async fn loop_play(
slash_command,
rename = "soundboard",
category = "Play",
default_member_permissions = "SPEAK"
default_member_permissions = "SPEAK",
guild_only = true
)]
pub async fn soundboard(
ctx: Context<'_>,