From e15176123e64b462bfb488bc9cc8178eceda7fb5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 24 Jul 2022 14:07:15 +0200 Subject: [PATCH] Use Array --- src/commands/misc/help.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/commands/misc/help.ts b/src/commands/misc/help.ts index 6a8a109..0031661 100644 --- a/src/commands/misc/help.ts +++ b/src/commands/misc/help.ts @@ -22,13 +22,19 @@ export default { // Check if command exists interaction.reply({ content: 'WIP', ephemeral: true }); } else { - const embed = new MessageEmbed() - .setColor('BLURPLE') - .setTitle(loc.get('c_help1')) - .setDescription(loc.get('c_help2')) - .addField('WIP', 'WIP'); + const fields = []; + fields.push({ + name: 'WIP', + value: 'WIP', + }); - interaction.reply({ embeds: [embed] }); + interaction.reply({ embeds: [ + new MessageEmbed() + .setColor('BLURPLE') + .setTitle(loc.get('c_help1')) + .setDescription(loc.get('c_help2')) + .addFields(fields), + ] }); } }, };