localizedNames property
final
The localized names to use.
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
final Map<Locale, String>? localizedNames;