From a8be9b71b26028348a8e075d81b60e3bf9accf3a Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sun, 14 Sep 2025 16:56:09 +0300 Subject: [PATCH] fix: aliases do not have their own command nodes --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9bf4569..ea16785 100644 --- a/src/main.rs +++ b/src/main.rs @@ -251,7 +251,7 @@ async fn main() -> Result<(), Box> { if !has_permission( &user, ranks.clone(), - format!("commands.{}", cmd_name), + format!("commands.{}", cmd_lock.name()), ) { client_events .message(format!("You do not have permission \"commands.{}\" to run this command.", cmd_name))