From fd675ca9d60cc06d892ebc36a1b9624f15233f20 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 29 Jun 2021 20:48:27 -0400 Subject: don't judge part 1 --- src/lib/extensions/BushCommand.ts | 57 --------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/lib/extensions/BushCommand.ts (limited to 'src/lib/extensions/BushCommand.ts') 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); - } -} -- cgit