*Bug fix
This commit is contained in:
parent
23b97cbeff
commit
e8ead4bb73
|
@ -147,9 +147,9 @@ export const factory = function <T extends Client = Client>(
|
|||
if (typeof prop !== "function") {
|
||||
return prop;
|
||||
}
|
||||
if (desc?.get) {
|
||||
return target[property as keyof T];
|
||||
}
|
||||
}
|
||||
if (desc?.get) {
|
||||
return target[property as keyof T];
|
||||
}
|
||||
return async (...args: any[]): Promise<any> => {
|
||||
await target.loadLibs(module);
|
||||
|
|
Reference in New Issue