This commit is contained in:
Bxio 2025-04-04 21:33:28 +01:00
parent d1f10e8f6c
commit f3fbe205f8

View File

@ -32,7 +32,7 @@ loadChoices()
module.exports = {
dynamicChoices()
data: new SlashCommandBuilder()
.setName('add')
.setDescription('Adiciona o servidor à base de dados.')
@ -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(...(dynamicChoices.length ? dynamicChoices : [
.addChoices(...(dynamicChoices.length ? loadChoices() : [
{ name: 'Opção Padrão 1', value: '0' },
{ name: 'Opção Padrão 2', value: '1' }
]))