mirror of
https://github.com/Davilarek/Vencord.git
synced 2025-05-11 01:45:39 +02:00
Fix unpatchAll and getPatchesByCaller in wrapper
I forgor
This commit is contained in:
parent
0ba8089187
commit
bf1e24c634
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
src/plugins/bdCompatLayer/stuffFromBD.d.ts
vendored
2
src/plugins/bdCompatLayer/stuffFromBD.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue