This commit is contained in:
Bxio 2025-04-04 21:35:36 +01:00
parent cdf2ec148f
commit 35c9021ce5

View File

@ -51,10 +51,10 @@ module.exports = {
option.setName('tipo_sanguinio1')
.setDescription('Escolha uma opção do banco de dados')
.setRequired(true)
.addChoices(...(dynamicChoices.length ? dynamicChoices : [
{ name: 'Opção Padrão 1', value: '0' },
{ name: 'Opção Padrão 2', value: '1' }
]))
.addChoices([
{ name: 'Opção Padrão 1', value: '0' },
{ name: 'Opção Padrão 2', value: '1' }
] : ...(dynamicChoices.length ? dynamicChoices ))
),
async execute(interaction, client) {