From 444f135d8796b2d9b48e42541469dc0dd3dd5a5a Mon Sep 17 00:00:00 2001 From: Kishor Ramanan Date: Sat, 20 Dec 2025 21:25:51 +0530 Subject: [PATCH] set the proper perms for both the slash and prefix commands in the level.rs --- src/commands/level.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/commands/level.rs b/src/commands/level.rs index 2de4854..662df9f 100644 --- a/src/commands/level.rs +++ b/src/commands/level.rs @@ -46,7 +46,8 @@ struct LeaderboardEntry { slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_GUILD", + required_permissions = "MANAGE_GUILD" )] pub async fn set_level_roles( ctx: Context<'_>, @@ -162,7 +163,8 @@ pub async fn get_level_roles(ctx: Context<'_>) -> Result<(), Error> { slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_GUILD", + required_permissions = "MANAGE_GUILD" )] pub async fn set_levelup_message_channel( ctx: Context<'_>, @@ -199,7 +201,8 @@ pub async fn set_levelup_message_channel( slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_GUILD", + required_permissions = "MANAGE_GUILD" )] pub async fn set_levelup_message( ctx: Context<'_>, @@ -227,7 +230,8 @@ pub async fn set_levelup_message( slash_command, prefix_command, guild_only, - default_member_permissions = "MANAGE_GUILD" + default_member_permissions = "MANAGE_GUILD", + required_permissions = "MANAGE_GUILD" )] pub async fn levelup_role_bridger( ctx: Context<'_>,