This commit is contained in:
parent
f6a2dfc701
commit
b9d3e25be4
@ -42,7 +42,7 @@ data: new SlashCommandBuilder()
|
||||
.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' }
|
||||
]))
|
||||
@ -51,7 +51,7 @@ data: new SlashCommandBuilder()
|
||||
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' }
|
||||
]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user