fix: aliases do not have their own command nodes

This commit is contained in:
Soph :3 2025-09-14 16:56:09 +03:00
parent b4f989bf92
commit a8be9b71b2

View file

@ -251,7 +251,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
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))