From 458a0b978fa137af2c60feac8ed7097107038ec7 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 16 Apr 2023 13:30:20 -0500 Subject: [PATCH] chore: remove deprecated symbols --- src/core/structures/wrapper.ts | 3 +-- src/types/plugin.ts | 35 ++-------------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/src/core/structures/wrapper.ts b/src/core/structures/wrapper.ts index 64420a7..bbbd476 100644 --- a/src/core/structures/wrapper.ts +++ b/src/core/structures/wrapper.ts @@ -10,12 +10,11 @@ interface Wrapper { readonly platform: PlatformStrategy; /** * @deprecated - * Add defaultprefix to platform field instead + * Add defaultPrefix to platform field instead */ readonly defaultPrefix?: string; readonly commands: string; readonly events?: string; - readonly strategy: PlatformStrategy; readonly containerConfig: { get: (...keys: (keyof Dependencies)[]) => unknown[]; }; diff --git a/src/types/plugin.ts b/src/types/plugin.ts index 3658f99..aba244e 100644 --- a/src/types/plugin.ts +++ b/src/types/plugin.ts @@ -15,9 +15,8 @@ import type { Awaitable } from 'discord.js'; import type { Err, Ok, Result } from 'ts-results-es'; import type { PluginType } from '../core/structures/enums'; import type { CommandModule, EventModule } from './module'; -import type { CommandArgs, InitArgs } from '../core/plugins'; -import type { Deprecated, Processed } from './handler'; -import type { CommandType } from '../core/structures/enums'; +import type { InitArgs } from '../core/plugins'; +import type { Processed } from './handler'; export type PluginResult = Awaitable; export type VoidResult = Result; @@ -42,33 +41,3 @@ export interface ControlPlugin { export type AnyCommandPlugin = ControlPlugin | InitPlugin<[InitArgs>]>; export type AnyEventPlugin = ControlPlugin | InitPlugin<[InitArgs>]>; -/** - * @deprecated - * Use the newer helper functions and import { controller } from '@sern/handler' - */ -export interface CommandPlugin { - name?: string; - description?: string; - type: PluginType.Command; - execute: ( - m: InitArgs>, - controller?: Deprecated<'Please import controller instead'>, - ) => PluginResult; -} -/** - * @deprecated - * Use the newer helper functions - */ -export interface EventPlugin { - name?: string; - description?: string; - type: PluginType.Event; - execute: (args: CommandArgs, controller?: Controller) => PluginResult; -} -export type DiscordEmitterPlugin = Deprecated<'Please view alternatives: '>; -export type ExternalEmitterPlugin = Deprecated<'Please view alternatives: '>; -export type SernEmitterPlugin = Deprecated<'Please view alternatives: '>; -export type AutocompletePlugin = Deprecated<'Please view alternatives: '>; -export type SernEventPlugin = Deprecated<'Please view alternatives: '>; -export type ExternalEventPlugin = Deprecated<'Please view alternatives: '>; -export type DiscordEventPlugin = Deprecated<'Please view alternatives: '>;