Archived
added the ability to hide help message from help list
This commit is contained in:
1 parent
8f11fae0c4
commit
868a88f4af
3 files changed
+3
No files matched your search
@@ -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),
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ export class HelpMessage extends Command {
|
||||
usage: params.usage,
|
||||
permissions: undefined,
|
||||
description: params.description,
|
||||
visible: params.visible,
|
||||
parameters: [
|
||||
{
|
||||
name: "command_name",
|
||||
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user