diff --git a/src/commands/Community/testeadd.js b/src/commands/Community/testeadd.js index 3cdbf27..0e05748 100644 --- a/src/commands/Community/testeadd.js +++ b/src/commands/Community/testeadd.js @@ -33,25 +33,25 @@ module.exports = { -data: new SlashCommandBuilder() + data: new SlashCommandBuilder() .setName('add') .setDescription('Adiciona o servidor à base de dados.') .addStringOption(option => - option.setName('nome') + option.setName('nome') .setDescription('Arisu - Escolhe uma opção') .setRequired(true) // Se as escolhas ainda não estiverem carregadas, defina um conjunto padrão para evitar erros. - .addChoices(loadChoices() : [ + .addChoices(...(dynamicChoices : [ { name: 'Opção Padrão 1', value: '0' }, { name: 'Opção Padrão 2', value: '1' } ])) ) .addStringOption(option => - option.setName('tipo_sanguinio1') + option.setName('tipo_sanguinio1') .setDescription('Escolha uma opção do banco de dados') .setRequired(true) - .addChoices(...(dynamicChoices : [ + .addChoices(...(dynamicChoices.length ? dynamicChoices : [ { name: 'Opção Padrão 1', value: '0' }, { name: 'Opção Padrão 2', value: '1' } ]))