aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BushCommand.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-29 20:48:27 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-29 20:48:27 -0400
commitfd675ca9d60cc06d892ebc36a1b9624f15233f20 (patch)
tree0c510afb64eb2c6f45c15c7e22148c6e7f7ed2d7 /src/lib/extensions/BushCommand.ts
parent921b07f9716fdd413ec89c4a40419a6e2d39824b (diff)
downloadtanzanite-fd675ca9d60cc06d892ebc36a1b9624f15233f20.tar.gz
tanzanite-fd675ca9d60cc06d892ebc36a1b9624f15233f20.tar.bz2
tanzanite-fd675ca9d60cc06d892ebc36a1b9624f15233f20.zip
don't judge part 1
Diffstat (limited to 'src/lib/extensions/BushCommand.ts')
-rw-r--r--src/lib/extensions/BushCommand.ts57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/lib/extensions/BushCommand.ts b/src/lib/extensions/BushCommand.ts
deleted file mode 100644
index f22a628..0000000
--- a/src/lib/extensions/BushCommand.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
-/* eslint-disable @typescript-eslint/no-explicit-any */
-import { ArgumentGenerator, ArgumentOptions, ArgumentPromptOptions, Command, CommandOptions } from 'discord-akairo';
-import { Snowflake } from 'discord.js';
-import { BushClient } from './BushClient';
-import { BushCommandHandler } from './BushCommandHandler';
-import { BushMessage } from './BushMessage';
-import { BushSlashMessage } from './BushSlashMessage';
-
-export interface BushArgumentOptions extends ArgumentOptions {
- id: string;
- description?: string;
- prompt?: ArgumentPromptOptions;
-}
-
-export interface BushCommandOptions extends CommandOptions {
- hidden?: boolean;
- restrictedChannels?: Snowflake[];
- restrictedGuilds?: Snowflake[];
- description: {
- content: string;
- usage: string | string[];
- examples: string | string[];
- };
- args?: BushArgumentOptions[] | ArgumentGenerator;
- category: string;
-}
-
-export class BushCommand extends Command {
- public declare client: BushClient;
-
- public declare handler: BushCommandHandler;
-
- public options: BushCommandOptions;
-
- /** The channels the command is limited to run in. */
- public restrictedChannels: Snowflake[];
-
- /** The guilds the command is limited to run in. */
- public restrictedGuilds: Snowflake[];
-
- /** Whether the command is hidden from the help command. */
- public hidden: boolean;
-
- constructor(id: string, options?: BushCommandOptions) {
- super(id, options);
- this.options = options;
- this.hidden = options.hidden || false;
- this.restrictedChannels = options.restrictedChannels;
- this.restrictedGuilds = options.restrictedGuilds;
- }
-
- public exec(message: BushMessage, args: any): any;
- public exec(message: BushMessage | BushSlashMessage, args: any): any {
- super.exec(message, args);
- }
-}