diff --git a/src/handler/utilities/readFile.ts b/src/handler/utilities/readFile.ts index ee9e0c7..1a5fadb 100644 --- a/src/handler/utilities/readFile.ts +++ b/src/handler/utilities/readFile.ts @@ -12,6 +12,7 @@ export type CommandVal = { export const Commands = new Map(); export const Alias = new Map(); +// Courtesy @Townsy45 async function readPath(dir: string, arrayOfFiles: string[] = []): Promise { try { const files = readdirSync(dir); diff --git a/src/types/handler.ts b/src/types/handler.ts index 07fca97..7484f4d 100644 --- a/src/types/handler.ts +++ b/src/types/handler.ts @@ -16,7 +16,7 @@ export type Visibility = 'private' | 'public'; export type possibleOutput = T | (MessagePayload & MessageOptions); export type Nullable = T | null; export type execute = Sern.Module['execute']; - +// Thanks @cursorsdottsx export type ParseType = { [K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never; }[keyof T];