This commit is contained in:
@ -4,6 +4,7 @@ exports.description =
|
||||
":scroll: Shows this message. (this bot is a crude imitation of tbolt's better bot :P)";
|
||||
exports.usage = "<<help [optional other command]";
|
||||
exports.example = "<<help res";
|
||||
exports.hidden = false;
|
||||
exports.run = (client, message, args) => {
|
||||
let embed = new EmbedBuilder();
|
||||
embed.setTitle("Commands Helper");
|
||||
@ -13,6 +14,7 @@ exports.run = (client, message, args) => {
|
||||
return message.channel.send(
|
||||
"Command not found, try `<<help` first."
|
||||
);
|
||||
if (cmd.hidden && message.author.id != client.ownerID) return;
|
||||
embed.setTitle(`Help for \`${cmd.name}\` command`);
|
||||
embed.setDescription(cmd.description);
|
||||
embed.addFields(
|
||||
@ -27,6 +29,7 @@ exports.run = (client, message, args) => {
|
||||
);
|
||||
} else {
|
||||
client.commands.forEach((cmd) => {
|
||||
if (cmd.hidden && message.author.id != client.ownerID) return;
|
||||
embed.addFields({
|
||||
name: cmd.name,
|
||||
value: cmd.description,
|
||||
|
Reference in New Issue
Block a user