From 0fe2966ad1460c01ed23b876b767447f768b3072 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sun, 11 Aug 2024 13:25:10 -0500 Subject: [PATCH] fixed various instances of cdn not getting stuff --- .dist/guild.js | 2 +- .dist/localuser.js | 2 +- .dist/user.js | 4 ++-- webpage/guild.ts | 2 +- webpage/localuser.ts | 2 +- webpage/user.ts | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.dist/guild.js b/.dist/guild.js index 6f58e53..744936d 100644 --- a/.dist/guild.js +++ b/.dist/guild.js @@ -245,7 +245,7 @@ class Guild { if (this.properties.icon != null) { const img = document.createElement("img"); img.classList.add("pfp", "servericon"); - img.src = this.info.cdn.toString() + "icons/" + this.properties.id + "/" + this.properties.icon + ".png"; + img.src = this.info.cdn.toString() + "/icons/" + this.properties.id + "/" + this.properties.icon + ".png"; divy.appendChild(img); img.onclick = () => { console.log(this.loadGuild); diff --git a/.dist/localuser.js b/.dist/localuser.js index cb723ad..9954251 100644 --- a/.dist/localuser.js +++ b/.dist/localuser.js @@ -518,7 +518,7 @@ class Localuser { const img = document.createElement("img"); img.classList.add("icon"); img.crossOrigin = "anonymous"; - img.src = this.info.cdn.toString() + (guild.icon ? ("icons/" + guild.id + "/" + guild.icon + ".png?size=48") : "embed/avatars/3.png"); + img.src = this.info.cdn.toString() + (guild.icon ? ("/icons/" + guild.id + "/" + guild.icon + ".png?size=48") : "/embed/avatars/3.png"); img.alt = ""; nameContainer.appendChild(img); const name = document.createElement("h3"); diff --git a/.dist/user.js b/.dist/user.js index b676c35..84c3403 100644 --- a/.dist/user.js +++ b/.dist/user.js @@ -141,10 +141,10 @@ class User { return this.avatar; } if (this.avatar != null) { - return this.info.cdn.toString() + "avatars/" + this.id + "/" + this.avatar + ".png"; + return this.info.cdn.toString() + "/avatars/" + this.id + "/" + this.avatar + ".png"; } else { - return this.info.cdn.toString() + "embed/avatars/3.png"; + return this.info.cdn.toString() + "/embed/avatars/3.png"; } } createjankpromises() { diff --git a/webpage/guild.ts b/webpage/guild.ts index e936ad1..990dfab 100644 --- a/webpage/guild.ts +++ b/webpage/guild.ts @@ -256,7 +256,7 @@ class Guild{ if(this.properties.icon!=null){ const img=document.createElement("img"); img.classList.add("pfp","servericon"); - img.src=this.info.cdn.toString()+"icons/"+this.properties.id+"/"+this.properties.icon+".png"; + img.src=this.info.cdn.toString()+"/icons/"+this.properties.id+"/"+this.properties.icon+".png"; divy.appendChild(img) img.onclick=()=>{ console.log(this.loadGuild) diff --git a/webpage/localuser.ts b/webpage/localuser.ts index c38b323..e3bad05 100644 --- a/webpage/localuser.ts +++ b/webpage/localuser.ts @@ -543,7 +543,7 @@ class Localuser{ const img=document.createElement("img"); img.classList.add("icon"); img.crossOrigin="anonymous"; - img.src=this.info.cdn.toString()+(guild.icon ? ("icons/"+guild.id+"/"+guild.icon+".png?size=48") : "embed/avatars/3.png"); + img.src=this.info.cdn.toString()+(guild.icon ? ("/icons/"+guild.id+"/"+guild.icon+".png?size=48") : "/embed/avatars/3.png"); img.alt=""; nameContainer.appendChild(img); diff --git a/webpage/user.ts b/webpage/user.ts index 6460cb8..d9e1611 100644 --- a/webpage/user.ts +++ b/webpage/user.ts @@ -144,9 +144,9 @@ class User{ return this.avatar; } if(this.avatar!=null){ - return this.info.cdn.toString()+"avatars/"+this.id+"/"+this.avatar+".png"; + return this.info.cdn.toString()+"/avatars/"+this.id+"/"+this.avatar+".png"; }else{ - return this.info.cdn.toString()+"embed/avatars/3.png"; + return this.info.cdn.toString()+"/embed/avatars/3.png"; } } createjankpromises(){