Transcribe command descriptions and call localize

This commit is contained in:
tacheometry committed 2023-12-15 14:42:36 +02:00
1 parent 46d1cfb008
commit 2cfab3209b
28 files changed
+578 -181

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ export function localizeCommand(command: Omit<SlashCommandBuilder, 'addSubcomman
}
// Localizing the command options...
if (jsonCommand.options) {
if (jsonCommand.options.length > 0) {
assert(englishData.options, `Command /${command.name} must have option localizations.`);
for (const unwritableOption of jsonCommand.options) {
const option = unwritableOption as never as APIApplicationCommandOption;