made preview mod only

This commit is contained in:
liyunze 2026-01-08 13:58:47 +08:00
parent 5ce9cf8e73
commit e3008e20f9

View file

@ -120,7 +120,11 @@ pub async fn view(
}
/// Preview FAQ
#[poise::command(prefix_command, slash_command)]
#[poise::command(
prefix_command,
slash_command,
required_permissions = "MANAGE_MESSAGES" // mod only
)]
pub async fn preview(
ctx: Context<'_>,
#[description = "FAQ Title"]