Compare commits
2 Commits
23b97cbeff
...
b7e337e966
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | b7e337e966 | |
Derrick Hammer | e8ead4bb73 |
|
@ -89,9 +89,9 @@ export const factory = function (type, module) {
|
||||||
if (typeof prop !== "function") {
|
if (typeof prop !== "function") {
|
||||||
return prop;
|
return prop;
|
||||||
}
|
}
|
||||||
if (desc?.get) {
|
}
|
||||||
return target[property];
|
if (desc?.get) {
|
||||||
}
|
return target[property];
|
||||||
}
|
}
|
||||||
return async (...args) => {
|
return async (...args) => {
|
||||||
await target.loadLibs(module);
|
await target.loadLibs(module);
|
||||||
|
|
|
@ -147,9 +147,9 @@ export const factory = function <T extends Client = Client>(
|
||||||
if (typeof prop !== "function") {
|
if (typeof prop !== "function") {
|
||||||
return prop;
|
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> => {
|
return async (...args: any[]): Promise<any> => {
|
||||||
await target.loadLibs(module);
|
await target.loadLibs(module);
|
||||||
|
|
Reference in New Issue