This commit is contained in:
parent
f6a2dfc701
commit
b9d3e25be4
@ -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' }
|
||||
]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user