aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-06 12:28:26 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-06 12:28:26 -0500
commita48dc88637d7b3e41a78eaeda91a19a967b278ff (patch)
tree6ef9f15683205fb10161c2db3d04fa35b2cc4238 /src/lib
parent10331e32e00116a4a82b4f86f668aaffa5ca903d (diff)
downloadtanzanite-a48dc88637d7b3e41a78eaeda91a19a967b278ff.tar.gz
tanzanite-a48dc88637d7b3e41a78eaeda91a19a967b278ff.tar.bz2
tanzanite-a48dc88637d7b3e41a78eaeda91a19a967b278ff.zip
fix a few things, add level roles (finally)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushCommand.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommand.ts b/src/lib/extensions/discord-akairo/BushCommand.ts
index 782fae5..fb488be 100644
--- a/src/lib/extensions/discord-akairo/BushCommand.ts
+++ b/src/lib/extensions/discord-akairo/BushCommand.ts
@@ -290,6 +290,11 @@ interface ExtendedCommandOptions {
* Use instead of {@link BaseBushCommandOptions.args} when using argument generators or custom slashOptions
*/
helpArgs?: BushArgumentOptions[];
+
+ /**
+ * Extra information about the command, displayed in the help command.
+ */
+ note?: string;
}
export interface BaseBushCommandOptions
@@ -397,6 +402,11 @@ export class BushCommand extends Command {
*/
public argsInfo?: ArgsInfo[];
+ /**
+ * Extra information about the command, displayed in the help command.
+ */
+ public note?: string;
+
public constructor(id: string, options: BushCommandOptions) {
const options_ = options as BaseBushCommandOptions;
@@ -501,6 +511,7 @@ export class BushCommand extends Command {
this.restrictedGuilds = options_.restrictedGuilds;
this.pseudo = !!options_.pseudo;
this.bypassChannelBlacklist = !!options_.bypassChannelBlacklist;
+ this.note = options_.note;
}
}