Fix unpatchAll and getPatchesByCaller in wrapper

I forgor
This commit is contained in:
Daniel 2023-10-13 14:09:36 +02:00
parent 0ba8089187
commit bf1e24c634
2 changed files with 7 additions and 4 deletions

View file

@ -41,11 +41,14 @@ class PatcherWrapper {
};
}
get getPatchesByCaller() {
return Patcher.getPatchesByCaller;
return () => {
return Patcher.getPatchesByCaller(this.#label);
};
}
get unpatchAll() {
return Patcher.unpatchAll;
return () => {
return Patcher.unpatchAll(this.#label);
};
}
}

View file

@ -22,7 +22,7 @@ export declare class Patcher {
static before(...args): any;
static instead(...args): any;
static after(...args): any;
static getPatchesByCaller(): any;
static getPatchesByCaller(...args): any;
static unpatchAll(...args): any;
static setup(DiscordModules: any): void;
}