localizedNames property
The localized names of this child. Since you cannot add descriptions to UserCommand and MessageCommand, can't set localized descriptions too.
ChatCommand test = ChatCommand(
'hi',
'A test command',
(
IChatContext context,
@Name('message', {Locale.german: 'hallo'}) String foo,
) async => context.respond(MessageBuilder.content(foo))
);
Will be displayed as 'hallo' in German, like so:
Implementation
Map<Locale, String>? get localizedNames;