From e3008e20f9cff9e66639a7f20321f1feaddd453b Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Thu, 8 Jan 2026 13:58:47 +0800 Subject: [PATCH] made preview mod only --- src/commands/faq.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/faq.rs b/src/commands/faq.rs index b9772db..f45d14d 100644 --- a/src/commands/faq.rs +++ b/src/commands/faq.rs @@ -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"]