mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
Transcribe command descriptions and call localize
This commit is contained in:
28 files changed
+578
-181
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user