fix: chomens bot command suggestions not suggesting commands without aliases
This commit is contained in:
parent
1d40be05a8
commit
501b4d2d2c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue