fix: chomens bot command suggestions not suggesting commands without aliases

This commit is contained in:
Chayapak 2025-01-26 12:26:04 +07:00
parent 1d40be05a8
commit 501b4d2d2c
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -23,7 +23,8 @@ public record ChomeNSBotCommand(String name, TrustLevel trustLevel, List<String>
if (hasAliasesString == null) return null;
final boolean hasAliases = Boolean.parseBoolean(hasAliasesString);
if (!hasAliases) return new ChomeNSBotCommand(name, trustLevel, List.of());
if (!hasAliases) return new ChomeNSBotCommand(
ChipmunkMod.CONFIG.bots.chomens.prefix + name, trustLevel, List.of());
final List<String> aliases = children.stream()
.skip(2)