mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
fix check for string or integer option
This commit is contained in:
1 parent
57ff7d56e2
commit
01fbd5e60a
1 file changed
+3
-1
@@ -132,9 +132,11 @@ export function localizeCommand(command: Omit<SlashCommandBuilder, 'addSubcomman
|
||||
if (localeOptionData.description) {
|
||||
option.description_localizations[locale] = localeOptionData.description;
|
||||
}
|
||||
|
||||
if (
|
||||
localeOptionData.choices &&
|
||||
option.type === (ApplicationCommandOptionType.String || ApplicationCommandOptionType.Integer) &&
|
||||
(option.type === ApplicationCommandOptionType.String ||
|
||||
option.type === ApplicationCommandOptionType.Integer) &&
|
||||
option.choices
|
||||
) {
|
||||
for (const choice of option.choices) {
|
||||
|
||||
Reference in new issue
Block a user