mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +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;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.37.1",
|
||||
"version": "119.37.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user