aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authormegumin <megumin.bakaretsurie@gmail.com>2022-10-23 19:09:02 +0100
committerGitHub <noreply@github.com>2022-10-23 19:09:02 +0100
commitffbb52512cd61764cfe04c1cf2707eb63d5e57bf (patch)
tree3d372a20e6d014c6a1db19370f7cdc508c80e9cc /src/utils
parentff9d904fcb4d625fea82b9954626dec6fc1a939d (diff)
downloadVencord-ffbb52512cd61764cfe04c1cf2707eb63d5e57bf.tar.gz
Vencord-ffbb52512cd61764cfe04c1cf2707eb63d5e57bf.tar.bz2
Vencord-ffbb52512cd61764cfe04c1cf2707eb63d5e57bf.zip
fix: plugin dependencies not enabling (#150)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/ChangeList.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/ChangeList.ts b/src/utils/ChangeList.ts
index 4f6bbb8..cce37a3 100644
--- a/src/utils/ChangeList.ts
+++ b/src/utils/ChangeList.ts
@@ -32,6 +32,14 @@ export class ChangeList<T>{
this.set.add(item);
}
+ public add(item: T) {
+ return this.set.add(item);
+ }
+
+ public remove(item: T) {
+ return this.set.delete(item);
+ }
+
public getChanges() {
return this.set.values();
}