mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
feat(front): implement errors, and built-in various scripts
This commit is contained in:
@@ -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