diff --git a/cipher_discord_bot/src/commands/mod.rs b/cipher_discord_bot/src/commands/mod.rs index 514229c..b1f28d3 100644 --- a/cipher_discord_bot/src/commands/mod.rs +++ b/cipher_discord_bot/src/commands/mod.rs @@ -32,9 +32,8 @@ where R: RepositoryProvider, { for command in commands { - if command.subcommands.is_empty() { - names.push(format!("{}{}", prefix, command.qualified_name.clone())); - } else { + names.push(format!("{}{}", prefix, command.qualified_name.clone())); + if !command.subcommands.is_empty() { let old_len = prefix.len(); prefix.push_str(&command.qualified_name); prefix.push(' ');