From a48dc88637d7b3e41a78eaeda91a19a967b278ff Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 6 Jan 2022 12:28:26 -0500 Subject: fix a few things, add level roles (finally) --- src/lib/extensions/discord-akairo/BushCommand.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/extensions/discord-akairo') 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; } } -- cgit