Skip to content

Commit

Permalink
reverted back help command Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazeIsClone committed Aug 24, 2020
1 parent a9a5478 commit 47881ec
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions commands/help.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
const { MessageEmbed } = require("discord.js");

module.exports = {
name: "help",
aliases: ["h"],
description: "Display all commands and descriptions",
execute(message) {
let commands = message.client.commands.array();
name: "help",
aliases: ["h"],
description: "Display all commands and descriptions",
execute(message) {
let commands = message.client.commands.array();

let helpEmbed = new MessageEmbed()
.setTitle("All For One Bot Help")
.setDescription("List of all commands")
.setColor("#F8AA2A");
let helpEmbed = new MessageEmbed()
.setTitle("All For One Bot Help")
.setDescription("List of all commands")
.setColor("#F8AA2A");

});
commands.forEach(cmd => {
helpEmbed.addField(
`**${message.client.prefix}${cmd.name} ${
cmd.aliases ? `(${cmd.aliases})` : ""
}**`,
`${cmd.description}`,
true
);
});

helpEmbed.setTimestamp();
helpEmbed.setTimestamp();

return message.channel.send(helpEmbed).catch(console.error);
}
return message.channel.send(helpEmbed).catch(console.error);
}
};

0 comments on commit 47881ec

Please sign in to comment.