mirror of
https://github.com/YuzuZensai/VRC-Circle.git
synced 2026-09-14 03:10:01 +00:00
✨ feat: Add friend functionality and refactor user context menus
This commit is contained in:
@@ -37,6 +37,11 @@ export async function listFriends(): Promise<UserProfile[]> {
|
||||
});
|
||||
}
|
||||
|
||||
export async function addFriend(userId: string): Promise<void> {
|
||||
const vrc = requireActiveClient();
|
||||
await vrc.friend({ path: { userId }, throwOnError: true });
|
||||
}
|
||||
|
||||
export async function unfriend(userId: string): Promise<void> {
|
||||
const vrc = requireActiveClient();
|
||||
await vrc.unfriend({ path: { userId }, throwOnError: true });
|
||||
|
||||
Reference in New Issue
Block a user