mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix unknownCommand coming up in help
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = class HelpCommand extends Command {
|
||||
let cmdCount = 0;
|
||||
for (const group of this.client.registry.groups.values()) {
|
||||
const owner = this.client.isOwner(msg.author);
|
||||
const commands = group.commands.filter(cmd => !cmd.hidden && owner ? true : !cmd.ownerOnly);
|
||||
const commands = group.commands.filter(cmd => owner ? true : !cmd.ownerOnly && !cmd.hidden);
|
||||
if (!commands.size) continue;
|
||||
cmdCount += commands.size;
|
||||
embed.addField(
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "111.1.3",
|
||||
"version": "111.1.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user