mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-11-25 15:30:01 +00:00
feat(front): implement errors, and built-in various scripts
This commit is contained in:
1 parent
15c97548ff
commit
4c0dc41aa8
5 files changed
+349
-16
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user