feat: add a fuck ton of get functions

This commit is contained in:
Twig 2025-07-18 12:56:33 +02:00
parent 58fe9a2eac
commit 69feff6cf8
No known key found for this signature in database
8 changed files with 81 additions and 0 deletions

9
utils/getUuid.ts Normal file
View file

@ -0,0 +1,9 @@
import type { GuildMemberResponse, UserResponse } from "~/types/interfaces";
export default (profile: UserResponse | GuildMemberResponse): string | null => {
if ("username" in profile) {
return profile.uuid
} else {
return profile.user.uuid
}
}