This commit is contained in:
parent
35c9021ce5
commit
a4c7cd373b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user