aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-23 18:09:43 +0200
committerV <vendicated@riseup.net>2023-06-23 18:09:43 +0200
commitd7ac418e05f43255c42ea115c9c352cf214753d5 (patch)
treecd4c148023aab0aa3ffdd6785e7d22d6ab834613 /src/webpack
parent214c101740622a8cc1c9cfbce8d51946564441da (diff)
downloadVencord-d7ac418e05f43255c42ea115c9c352cf214753d5.tar.gz
Vencord-d7ac418e05f43255c42ea115c9c352cf214753d5.tar.bz2
Vencord-d7ac418e05f43255c42ea115c9c352cf214753d5.zip
Fix some plugins displaying legacy discriminators (username#0000)
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common/types/stores.d.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webpack/common/types/stores.d.ts b/src/webpack/common/types/stores.d.ts
index db60b63..3771150 100644
--- a/src/webpack/common/types/stores.d.ts
+++ b/src/webpack/common/types/stores.d.ts
@@ -20,14 +20,23 @@ import { Channel } from "discord-types/general";
import { FluxDispatcher, FluxEvents } from "./utils";
+type GenericFunction = (...args: any[]) => any;
+
export class FluxStore {
constructor(dispatcher: FluxDispatcher, eventHandlers?: Partial<Record<FluxEvents, (data: any) => void>>);
+ addChangeListener(callback: () => void): void;
+ addReactChangeListener(callback: () => void): void;
+ removeChangeListener(callback: () => void): void;
+ removeReactChangeListener(callback: () => void): void;
emitChange(): void;
getDispatchToken(): string;
getName(): string;
initialize(): void;
initializeIfNeeded(): void;
+ registerActionHandlers: GenericFunction;
+ syncWith: GenericFunction;
+ waitFor: GenericFunction;
__getLocalVars(): Record<string, any>;
}