chore: switch to async rpc framework, fix buttons

This commit is contained in:
HorizonCode committed 2026-05-21 21:24:17 +02:00
1 parent afdd74175a
commit 6fdb2376a1
6 files changed
+128 -98

No files matched your search

+4 -2
View File
@@ -599,18 +599,20 @@
username += ` (#${currentModeStats.rank})`;
await Promise.all([
presence.updateButton(customButton),
presence.updateUser({
username,
id: $currentUser.id.toFixed(),
}),
presence.updateButton(customButton),
presence.updateStatus({
details,
state,
largeImageKey,
}),
]);
} catch {}
} catch (err) {
console.log(err);
}
}
}
}, 1000 * 2);