aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/trigger.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/trigger.rs')
-rw-r--r--src/commands/trigger.rs12
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)]
24pub async fn create( 24pub 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)]
45pub async fn add( 45pub 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)]
87pub async fn remove( 87pub 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)]
119pub async fn delete( 119pub 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)]
138pub async fn list( 138pub 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)]
189pub async fn help(ctx: Context<'_>) -> Result<()> { 189pub async fn help(ctx: Context<'_>) -> Result<()> {
190 let help = [ 190 let help = [
191 "**Trigger Commands**", 191 "**Trigger Commands**",