From 83f6568d84e8cff8c27cfb08f9dfc7b8189340ba Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sat, 15 Apr 2023 12:11:18 -0500 Subject: [PATCH] add deprecation warning --- src/core/platform/strategy.ts | 2 +- src/core/structures/wrapper.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/platform/strategy.ts b/src/core/platform/strategy.ts index 23c6e42..a0b8247 100644 --- a/src/core/platform/strategy.ts +++ b/src/core/platform/strategy.ts @@ -1,4 +1,3 @@ -import { Context } from "../structures/context"; enum DispatchType { Websocket, @@ -14,6 +13,7 @@ interface WebsocketStrategy { interactionCreate: string; messageCreate: string; ready: string; + defaultPrefix: string; } interface ServerlessStrategy { diff --git a/src/core/structures/wrapper.ts b/src/core/structures/wrapper.ts index 4dcfded..64420a7 100644 --- a/src/core/structures/wrapper.ts +++ b/src/core/structures/wrapper.ts @@ -8,6 +8,10 @@ import { PlatformStrategy } from '../platform/strategy'; */ interface Wrapper { readonly platform: PlatformStrategy; + /** + * @deprecated + * Add defaultprefix to platform field instead + */ readonly defaultPrefix?: string; readonly commands: string; readonly events?: string;