From f471d4caefff51d49b69551412f4859d99f674a2 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 6 Nov 2026 21:34:53 +0100 Subject: revert required permissions Signed-off-by: salmonik --- src/commands/trigger.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands/trigger.rs') diff --git a/src/commands/trigger.rs b/src/commands/trigger.rs index 5d481e4..01fda18 100644 --- a/src/commands/trigger.rs +++ b/src/commands/trigger.rs @@ -20,7 +20,7 @@ pub async fn trigger(_ctx: Context<'_>) -> Result<()> { } /// Create a new trigger group -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn create( ctx: Context<'_>, #[description = "Logical group name"] @@ -41,7 +41,7 @@ pub async fn create( } /// Add keywords and/or responses to a trigger group -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn add( ctx: Context<'_>, #[description = "Existing group name"] @@ -83,7 +83,7 @@ pub async fn add( } /// Remove keyword or response from a group -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn remove( ctx: Context<'_>, #[description = "Group name"] @@ -115,7 +115,7 @@ pub async fn remove( } /// Delete an entire trigger group -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn delete( ctx: Context<'_>, #[description = "Group name"] @@ -134,7 +134,7 @@ pub async fn delete( } /// List keywords and responses for a group -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn list( ctx: Context<'_>, #[description = "Group name"] @@ -185,7 +185,7 @@ pub async fn list( } /// Display trigger command usage info -#[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] +#[poise::command(slash_command, guild_only)] pub async fn help(ctx: Context<'_>) -> Result<()> { let help = [ "**Trigger Commands**", -- cgit v1.2.3