feat: remove old utils in favor of api composable

This commit is contained in:
SauceyRed 2025-05-31 16:31:40 +02:00
parent 310b1cc2df
commit 115b7d8341
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
3 changed files with 57 additions and 12 deletions

View file

@ -1,6 +0,0 @@
import type { UserResponse } from "~/types/interfaces"
export default async (serverId: string, memberId: string): Promise<UserResponse> => {
const user = await fetchWithApi(`/guilds/${serverId}/members/${memberId}`) as UserResponse;
return user;
}

View file

@ -1,6 +0,0 @@
import type { UserResponse } from "~/types/interfaces"
export default async (serverId: string, userId: string): Promise<UserResponse> => {
const user = await fetchWithApi(`/users/${userId}`) as UserResponse;
return user;
}