Removed useless type files

This commit is contained in:
2024-01-06 15:56:45 +01:00
parent 10c18202c5
commit 6dfd72bb23
10 changed files with 23 additions and 28 deletions

View File

@@ -1,6 +1,5 @@
import fetch from "axios"
import env from "../Env"
import { Profile, Profile2 } from "../../typings"
import { Player, PlayerData } from "../../interfaces"
import { Guild, GuildData } from "../../interfaces"
const apikey = env.prod.hypixelapikey
@@ -11,6 +10,22 @@ const guild = "https://api.hypixel.net/guild"
const minotar = "https://minotar.net/helm/"
type GuildQuerqType = "player" | "name" | "id"
type Profile = {
data: {
id: string
name: string
}
}
type Profile2 = {
data: {
id: string
name: string
properties: { name: string; value: string }[]
profileActions: []
}
}
async function getUUID(ign: string): Promise<string | null> {
try {
const req: Profile = await fetch(mojang + ign)