diff --git a/src/commands/Community/testeadd.js b/src/commands/Community/testeadd.js index b01eb71..bf4d0ce 100644 --- a/src/commands/Community/testeadd.js +++ b/src/commands/Community/testeadd.js @@ -42,7 +42,7 @@ module.exports = { .setRequired(true) // Se as escolhas ainda não estiverem carregadas, defina um conjunto padrão para evitar erros. - .addChoices(...(loadChoices().length ? loadChoices() : [ + .addChoices(...loadChoices() : [ { name: 'Opção Padrão 1', value: '0' }, { name: 'Opção Padrão 2', value: '1' } ])) @@ -51,10 +51,10 @@ module.exports = { option.setName('tipo_sanguinio1') .setDescription('Escolha uma opção do banco de dados') .setRequired(true) - .addChoices([ - { name: 'Opção Padrão 1', value: '0' }, - { name: 'Opção Padrão 2', value: '1' } - ] : ...(dynamicChoices.length ? dynamicChoices )) + .addChoices(...(dynamicChoices.length ? dynamicChoices : [ + { name: 'Opção Padrão 1', value: '0' }, + { name: 'Opção Padrão 2', value: '1' } + ])) ), async execute(interaction, client) {