6 lines
249 B
TypeScript
6 lines
249 B
TypeScript
import type { UserResponse } from "~/types/interfaces"
|
|
|
|
export default async (guildId: string, memberId: string): Promise<UserResponse> => {
|
|
const user = await fetchWithApi(`/guilds/${guildId}/members/${memberId}`) as UserResponse;
|
|
return user;
|
|
}
|