mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 18:46:15 +00:00
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;
|
if (hasAliasesString == null) return null;
|
||||||
|
|
||||||
final boolean hasAliases = Boolean.parseBoolean(hasAliasesString);
|
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()
|
final List<String> aliases = children.stream()
|
||||||
.skip(2)
|
.skip(2)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue