diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-06 21:34:53 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-06 21:34:53 +0100 |
| commit | f471d4caefff51d49b69551412f4859d99f674a2 (patch) | |
| tree | 1b48ef33957c39522eaaa599324e1d01ac85178f /src/commands/trigger.rs | |
| parent | tests: skip the piper smoke test when models are absent (diff) | |
| download | senator-sperma-main.tar.gz senator-sperma-main.zip | |
revert required permissionsmain
Signed-off-by: salmonik <salmonik@tuta.io>
Diffstat (limited to '')
| -rw-r--r-- | src/commands/trigger.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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<()> { | |||
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | /// Create a new trigger group | 22 | /// Create a new trigger group |
| 23 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 23 | #[poise::command(slash_command, guild_only)] |
| 24 | pub async fn create( | 24 | pub async fn create( |
| 25 | ctx: Context<'_>, | 25 | ctx: Context<'_>, |
| 26 | #[description = "Logical group name"] | 26 | #[description = "Logical group name"] |
| @@ -41,7 +41,7 @@ pub async fn create( | |||
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | /// Add keywords and/or responses to a trigger group | 43 | /// Add keywords and/or responses to a trigger group |
| 44 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 44 | #[poise::command(slash_command, guild_only)] |
| 45 | pub async fn add( | 45 | pub async fn add( |
| 46 | ctx: Context<'_>, | 46 | ctx: Context<'_>, |
| 47 | #[description = "Existing group name"] | 47 | #[description = "Existing group name"] |
| @@ -83,7 +83,7 @@ pub async fn add( | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | /// Remove keyword or response from a group | 85 | /// Remove keyword or response from a group |
| 86 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 86 | #[poise::command(slash_command, guild_only)] |
| 87 | pub async fn remove( | 87 | pub async fn remove( |
| 88 | ctx: Context<'_>, | 88 | ctx: Context<'_>, |
| 89 | #[description = "Group name"] | 89 | #[description = "Group name"] |
| @@ -115,7 +115,7 @@ pub async fn remove( | |||
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | /// Delete an entire trigger group | 117 | /// Delete an entire trigger group |
| 118 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 118 | #[poise::command(slash_command, guild_only)] |
| 119 | pub async fn delete( | 119 | pub async fn delete( |
| 120 | ctx: Context<'_>, | 120 | ctx: Context<'_>, |
| 121 | #[description = "Group name"] | 121 | #[description = "Group name"] |
| @@ -134,7 +134,7 @@ pub async fn delete( | |||
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | /// List keywords and responses for a group | 136 | /// List keywords and responses for a group |
| 137 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 137 | #[poise::command(slash_command, guild_only)] |
| 138 | pub async fn list( | 138 | pub async fn list( |
| 139 | ctx: Context<'_>, | 139 | ctx: Context<'_>, |
| 140 | #[description = "Group name"] | 140 | #[description = "Group name"] |
| @@ -185,7 +185,7 @@ pub async fn list( | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | /// Display trigger command usage info | 187 | /// Display trigger command usage info |
| 188 | #[poise::command(slash_command, guild_only, required_permissions = "MANAGE_GUILD")] | 188 | #[poise::command(slash_command, guild_only)] |
| 189 | pub async fn help(ctx: Context<'_>) -> Result<()> { | 189 | pub async fn help(ctx: Context<'_>) -> Result<()> { |
| 190 | let help = [ | 190 | let help = [ |
| 191 | "**Trigger Commands**", | 191 | "**Trigger Commands**", |
