mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Hide NSFW in the help Command
This commit is contained in:
@@ -41,6 +41,7 @@ module.exports = class HelpCommand extends Command {
|
||||
const commands = group.commands.filter(cmd => {
|
||||
if (owner) return true;
|
||||
if (cmd.ownerOnly || cmd.hidden) return false;
|
||||
if (cmd.nsfw && !msg.channel.nsfw) return false;
|
||||
return true;
|
||||
});
|
||||
if (!commands.size) continue;
|
||||
|
||||
Reference in New Issue
Block a user