Use Array

This commit is contained in:
Mylloon 2022-07-24 14:07:15 +02:00
parent dc8c0ab570
commit e15176123e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -22,13 +22,19 @@ export default {
// Check if command exists // Check if command exists
interaction.reply({ content: 'WIP', ephemeral: true }); interaction.reply({ content: 'WIP', ephemeral: true });
} else { } else {
const embed = new MessageEmbed() const fields = [];
.setColor('BLURPLE') fields.push({
.setTitle(loc.get('c_help1')) name: 'WIP',
.setDescription(loc.get('c_help2')) value: 'WIP',
.addField('WIP', 'WIP'); });
interaction.reply({ embeds: [embed] }); interaction.reply({ embeds: [
new MessageEmbed()
.setColor('BLURPLE')
.setTitle(loc.get('c_help1'))
.setDescription(loc.get('c_help2'))
.addFields(fields),
] });
} }
}, },
}; };