This commit is contained in:
Dragon Fire
2020-04-11 11:29:40 -04:00
parent dfe8c0a5e0
commit fe3a92a76e
13 changed files with 18 additions and 17 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ module.exports = class HelpCommand extends Command {
const commands = group.commands.filter(cmd => {
if (owner) return true;
if (cmd.ownerOnly || cmd.hidden) return false;
if (this.client.botListGuilds.includes(msg.guild.id) && cmd instanceof AutoReplyCommand) {
const inBotList = msg.guild && this.client.botListGuilds.includes(msg.guild.id);
if (inBotList && cmd instanceof AutoReplyCommand) {
return false;
}
return true;