Merge pull request #13 from sern-handler/EvolutionX-10-patch-1

This commit is contained in:
Jacob Nguyen
2022-02-19 08:39:07 -06:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ export type CommandVal = {
export const Commands = new Map<string, CommandVal>();
export const Alias = new Map<string, CommandVal>();
// Courtesy @Townsy45
async function readPath(dir: string, arrayOfFiles: string[] = []): Promise<string[]> {
try {
const files = readdirSync(dir);

View File

@@ -16,7 +16,7 @@ export type Visibility = 'private' | 'public';
export type possibleOutput<T = string> = T | (MessagePayload & MessageOptions);
export type Nullable<T> = T | null;
export type execute = Sern.Module<unknown>['execute'];
// Thanks @cursorsdottsx
export type ParseType<T> = {
[K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never;
}[keyof T];