chore: redundant directory

This commit is contained in:
Jacob Nguyen
2023-05-03 21:09:04 -05:00
parent 2ecf3e5a5c
commit 4125508cd3

View File

@@ -1,38 +0,0 @@
export const enum DispatchType {
Websocket,
Serverless
}
export type PlatformStrategy =
| WebsocketStrategy
| ServerlessStrategy;
export interface WebsocketStrategy {
type: DispatchType.Websocket;
//icreate, messageCreate, ready
eventNames: [ string, string, string]
defaultPrefix?: string;
}
export interface ServerlessStrategy {
type: DispatchType.Serverless;
endpoint: string;
}
export function makeWebsocketAdapter(
eventNames: [interactionCreate: string, messageCreate: string, ready: string],
defaultPrefix?: string
): WebsocketStrategy {
return {
type: DispatchType.Websocket,
eventNames,
defaultPrefix
};
}
export function makeServerlessAdapter(i : { endpoint: string }): ServerlessStrategy {
return {
type: DispatchType.Serverless ,
...i
};
}