This commit is contained in:
Vendicated 2026-08-26 01:43:41 +02:00
parent 985b41a5c1
commit dccf58453c
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"name": "vencord",
"private": "true",
"version": "1.15.2",
"version": "1.15.3",
"description": "The cutest Discord client mod",
"homepage": "https://github.com/Vendicated/Vencord#readme",
"bugs": {

View file

@ -15,6 +15,10 @@ export class TTLMap<K, V> extends Map<K, V> {
}
public set(key: K, value: V) {
if (this._timers.has(key)) {
clearTimeout(this._timers.get(key));
}
const timeoutId = setTimeout(() => {
this.delete(key);
this.onExpire?.(key, value);