Archived
added the option to disable message command (prefix)
This commit is contained in:
1 parent
0a9cdb7bde
commit
9e78438d0a
4 files changed
+14
-6
No files matched your search
+6
-2
@@ -41,7 +41,9 @@ export class HelpMessage extends Command {
|
||||
if (cmd.usage)
|
||||
helpMsg.addField(
|
||||
"Usage:",
|
||||
`${cmdManager.prefix}${cmd.name} ${cmd.usage}`,
|
||||
`${cmdManager.prefix || "/"}${cmd.name} ${
|
||||
cmd.usage
|
||||
}`,
|
||||
false
|
||||
);
|
||||
if (
|
||||
@@ -79,7 +81,9 @@ export class HelpMessage extends Command {
|
||||
cmdManager.list.map((c) => {
|
||||
if (c.visible) {
|
||||
helpMsg.addField(
|
||||
`${cmdManager.prefix}${c.name} ${c.usage}`,
|
||||
`${cmdManager.prefix || "/"}${c.name} ${
|
||||
c.usage
|
||||
}`,
|
||||
c.description,
|
||||
false
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user