i18n only translate command description

public override async registerApplicationCommands(registry: ApplicationCommandRegistry) {
registry.registerChatInputCommand((builder) =>
applyLocalizedBuilder(builder, 'commands/mycommand:name', 'commands/mycommand:description').setDMPermission(true)
);
}
public override async registerApplicationCommands(registry: ApplicationCommandRegistry) {
registry.registerChatInputCommand((builder) =>
applyLocalizedBuilder(builder, 'commands/mycommand:name', 'commands/mycommand:description').setDMPermission(true)
);
}
How would I hardcode the command name but localise the description? Just using applyLocalizedBuilder(builder, 'mycommand', 'commands/mycommand:description')? or setting the name afterwards with .setName('mycommand')
Solution:
the latter, or set the same name in each of your language files
Jump to solution
2 Replies
Solution
Favna
Favna7mo ago
the latter, or set the same name in each of your language files
Favna
Favna7mo ago
but you should translate it
Want results from more Discord servers?
Add your server