fix sticker picker for dms
This commit is contained in:
parent
a64b211164
commit
bd9e90d064
1 changed files with 4 additions and 6 deletions
|
@ -100,12 +100,10 @@ class Sticker extends SnowFlake {
|
||||||
|
|
||||||
const topBar = document.createElement("div");
|
const topBar = document.createElement("div");
|
||||||
topBar.classList.add("flexltr", "emojiHeading");
|
topBar.classList.add("flexltr", "emojiHeading");
|
||||||
const guilds = [
|
const guilds = [localuser.lookingguild, ...localuser.guilds]
|
||||||
localuser.lookingguild,
|
.filter((guild) => guild !== undefined)
|
||||||
...localuser.guilds
|
|
||||||
.filter((guild) => guild.id != "@me" && guild.stickers.length > 0)
|
.filter((guild) => guild.id != "@me" && guild.stickers.length > 0)
|
||||||
.filter((guild) => guild !== localuser.lookingguild),
|
.filter((guild) => guild !== localuser.lookingguild);
|
||||||
].filter((guild) => guild !== undefined);
|
|
||||||
|
|
||||||
const title = document.createElement("h2");
|
const title = document.createElement("h2");
|
||||||
title.textContent = guilds[0].properties.name;
|
title.textContent = guilds[0].properties.name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue