From f8a7f3603c6424a1265b49adf783597f62c09523 Mon Sep 17 00:00:00 2001 From: Kishor Ramanan Date: Sat, 20 Dec 2025 21:24:39 +0530 Subject: [PATCH] set the proper perms for both the slash and prefix commands in the utils.rs --- src/commands/utility.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/commands/utility.rs b/src/commands/utility.rs index d346de0..f6dac5e 100644 --- a/src/commands/utility.rs +++ b/src/commands/utility.rs @@ -27,7 +27,8 @@ struct GuildRecord { slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_MESSAGES", + required_permissions = "MANAGE_MESSAGES" )] pub async fn auto_response( ctx: Context<'_>, @@ -68,7 +69,8 @@ pub async fn auto_response( slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_MESSAGES", + required_permissions = "MANAGE_MESSAGES" )] pub async fn view_auto_responses(ctx: Context<'_>) -> Result<(), Error> { let guild_id = ctx @@ -109,7 +111,8 @@ pub async fn view_auto_responses(ctx: Context<'_>) -> Result<(), Error> { slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_MESSAGES", + required_permissions = "MANAGE_MESSAGES" )] pub async fn delete_auto_response( ctx: Context<'_>, @@ -157,7 +160,8 @@ pub async fn delete_auto_response( slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_MESSAGES", + required_permissions = "MANAGE_MESSAGES" )] pub async fn edit_auto_response( ctx: Context<'_>,