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

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

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;
}