From f4b6642b73638901b9c9bac872ea6505d241e6e5 Mon Sep 17 00:00:00 2001 From: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com> Date: Sat, 19 Feb 2022 20:01:10 +0530 Subject: [PATCH 1/2] chores: add back cursorsdottsx credits --- src/types/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; From f6b85d876327ed5b7e623993b4915aed68a2f5ed Mon Sep 17 00:00:00 2001 From: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com> Date: Sat, 19 Feb 2022 20:03:40 +0530 Subject: [PATCH 2/2] chore: add back @Townsy45's credits --- src/handler/utilities/readFile.ts | 1 + 1 file changed, 1 insertion(+) 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);