Skip to content

Commit

Permalink
Update help.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Crenshaw committed Apr 6, 2021
1 parent cf2c02d commit 758c65a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commands/Information/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = {

// Command specific
} else {

let command = client.commands.get(args[0]) || client.commands.get(client.aliases.get(args[0]));
if (command) {
// indiviual command
Expand All @@ -49,7 +48,7 @@ module.exports = {
} else {
// Groups
let group = groups.find(group => group.toLowerCase() == args[0])
if (!group) return;
if (!group) return client.err(message, "Help", "Command or group not found");
for (let command of client.groups.get(group)) {
desc += `**${command.name}**, `
}
Expand All @@ -58,7 +57,9 @@ module.exports = {
embed.setTitle(`Help - ${group}`);
embed.setDescription(desc);
}
if ( nsfw && !message.channel.nsfw) return client.err(message, "NSFW", "This is not a NSFW channel");
if (message.guild) {
if ( nsfw && !message.channel.nsfw) return client.err(message, "NSFW", "This is not a NSFW channel");
}
return message.reply(embed);
}
return message.reply(embed);
Expand Down

0 comments on commit 758c65a

Please sign in to comment.