diff --git a/commands/help.js b/commands/help.js index 891a93c..d65e264 100644 --- a/commands/help.js +++ b/commands/help.js @@ -105,12 +105,24 @@ module.exports = { if (command.alias.toString() !== '') { alias = command.alias.join(', ') } + + const usage = [] + if (typeof command.usage === 'string') { + usage.push(`${prefix}${command.name} ${command.usage}`) + } else { + for (const value of command.usage) { + usage.push(`${prefix}${command.name} ${value}`) + usage.push('\n') + } + usage.pop() + } + const Embed = new EmbedBuilder() .setColor(config.discord.embedsColors.normal) .setTitle(`${prefix + command.name} (${alias}) - ${command.description}`) .setDescription(`Trust level: ${command.trusted} Supported: ${command.discordExecute ? 'true' : 'false'} - ${prefix + command.name} ${command.usage}` + ${usage}` ) channeldc.send({ embeds: [Embed] }) }