add deprecation warning

This commit is contained in:
Jacob Nguyen
2023-04-15 12:11:18 -05:00
parent f02bbbf54e
commit 83f6568d84
2 changed files with 5 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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;