feat(front): implement errors, and built-in various scripts

This commit is contained in:
Hexagonn authored and GitHub committed 2024-10-20 14:30:54 +00:00
1 parent 15c97548ff
commit 4c0dc41aa8
5 files changed
+349 -16

No files matched your search

+8
View File
@@ -7,3 +7,11 @@ export async function getUserCount() {
return count.length;
}
export async function isUserMonitored(userId: string) {
const user = await fetch(
`https://api.lanyard.rest/v1/users/${userId}`,
).then((res) => res.json());
return user.success === true;
}