addStringOption applyLocalizedBuilder

Hey, Is it possible to use localizedBuilder on the choices for addStringOption?
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) => applyLocalizedBuilder(builder, 'commands/help:name', 'commands/help:description').addStringOption(
(option) => applyLocalizedBuilder(option, 'commands/help:options.category', 'commands/help:options.category.description').addChoices(
{ name: 'commands/help:choices.general', value: 'general' },
{ name: 'commands/help:choices.profile', value: 'profile' },
)
)
);
}
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) => applyLocalizedBuilder(builder, 'commands/help:name', 'commands/help:description').addStringOption(
(option) => applyLocalizedBuilder(option, 'commands/help:options.category', 'commands/help:options.category.description').addChoices(
{ name: 'commands/help:choices.general', value: 'general' },
{ name: 'commands/help:choices.profile', value: 'profile' },
)
)
);
}
3 Replies
Favna
Favna•3mo ago
Yes
Favna
Favna•3mo ago
Swiizyy
Swiizyy•3mo ago
createLocalizedChoice 🫣
Want results from more Discord servers?
Add your server