Update index.tsx

This commit is contained in:
OTKUSteyler 2026-06-09 07:28:53 +02:00 • committed by GitHub
parent 45b9a9c8e6
commit 0ba2694f01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,10 +98,11 @@ export default defineCorePlugin({
}
const [badgesRes, rolesRes] = await Promise.all([
fetch("https://codeberg.org/api/v1/repos/chocomint-chan/GoonCord_Badges/raw/badges.json?ref=main")
.catch((e) => { console.error("[bunny.badges] badges fetch failed:", e); return null; }),
fetch("https://codeberg.org/api/v1/repos/chocomint-chan/GoonCord_Badges/raw/assets/roles/roles.json?ref=main")
.catch((e) => { console.error("[bunny.badges] roles fetch failed:", e); return null; }),
fetch("https://raw.githubusercontent.com/chocomint-chan/GoonCord_Badges/main/badges.json")
.catch((e) => { console.error("[bunny.badges] badges fetch failed:", e); return null; }),
fetch("https://raw.githubusercontent.com/chocomint-chan/GoonCord_Badges/main/assets/roles/roles.json")
.catch((e) => { console.error("[bunny.badges] roles fetch failed:", e); return null; }),
]);
if (badgesRes && !badgesRes.ok) console.error("[bunny.badges] badges HTTP error:", badgesRes.status);