diff --git a/commands/general/help.js b/commands/general/help.js index ba4f0cc..9fbc8da 100644 --- a/commands/general/help.js +++ b/commands/general/help.js @@ -53,6 +53,7 @@ class HelpCommand extends Command { } else { if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("embedLinks")) return "I don't have the `Embed Links` permission!"; const pages = []; + if (help.categories === help.categoryTemplate) await help.generateList(); for (const category of Object.keys(help.categories)) { const splitPages = help.categories[category].map((item, index) => { return index % 15 === 0 ? help.categories[category].slice(index, index + 15) : null; diff --git a/utils/help.js b/utils/help.js index 01edb67..7b5605e 100644 --- a/utils/help.js +++ b/utils/help.js @@ -1,7 +1,7 @@ import { commands, info } from "./collections.js"; import { promises } from "fs"; -const categoryTemplate = { +export const categoryTemplate = { general: [], tags: ["> **Every command in this category is a subcommand of the tag command.**\n"], "image-editing": ["> **These commands support the PNG, JPEG, WEBP (static), and GIF (animated or static) formats.**\n"]