webhooks and bug fixes

does not allow for editing/deleting them yet
This commit is contained in:
MathMan05 2025-03-21 11:45:23 -05:00
parent 7068b03757
commit 995961749e
11 changed files with 400 additions and 15 deletions

View file

@ -892,7 +892,7 @@ class Localuser {
if (!forceReload && this.lookingguild === guild) {
return guild;
}
if (this.channelfocus) {
if (this.channelfocus && this.lookingguild !== guild) {
this.channelfocus.infinite.delete();
this.channelfocus = undefined;
}
@ -1070,7 +1070,11 @@ class Localuser {
headers: this.headers,
});
const json = await res.json();
console.log([...json.guilds], json.guilds);
//@ts-ignore
json.guilds = json.guilds.sort((a, b) => {
return b.member_count - a.member_count;
});
content.innerHTML = "";
const title = document.createElement("h2");
title.textContent = I18n.getTranslation("guild.disoveryTitle", json.guilds.length + "");