added the ability to hide help message from help list

This commit is contained in:
mmacierzanka committed 2021-08-29 17:42:19 +02:00
1 parent 8f11fae0c4
commit 868a88f4af
3 files changed
+3

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ export class Bot extends EventEmitter {
color: "#ff5500",
usage: "[command name (optional)]",
bottomText: "List of all available commands",
visible: true,
},
system: new SystemMessageManager(this.name),
};
+1
View File
@@ -10,6 +10,7 @@ export class HelpMessage extends Command {
usage: params.usage,
permissions: undefined,
description: params.description,
visible: params.visible,
parameters: [
{
name: "command_name",
+1
View File
@@ -45,6 +45,7 @@ export interface HelpMessageParams {
color: ColorResolvable;
description: string;
usage: string;
visible: boolean;
}
export type ParameterType = "string" | "boolean" | "number" | "user" | "role" | "channel" | "mentionable";
export type ParameterResolvable = string | boolean | number | ObjectID | undefined;