This commit is contained in:
parent
e9bdb8b008
commit
5ec81e9b3d
@ -14,7 +14,7 @@ async function loadChoices() {
|
||||
}));
|
||||
} catch (err) {
|
||||
console.error("Erro ao carregar escolhas:", err);
|
||||
return ;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ module.exports = {
|
||||
.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(dynamicChoices)
|
||||
.addChoices({ name: 'agua', value: '2' }, { name: 'pao', value: '1' })
|
||||
)
|
||||
.addStringOption(option =>
|
||||
option.setName('tipo_sanguinio1')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user