allow gifs
This commit is contained in:
parent
41ca4bbf04
commit
e61295dd3c
@ -78,7 +78,13 @@
|
|||||||
} else {
|
} else {
|
||||||
const icon = document.createElement('img');
|
const icon = document.createElement('img');
|
||||||
icon.classList.add('guild-icon');
|
icon.classList.add('guild-icon');
|
||||||
icon.src = `https:\/\/cdn.discordapp.com/icons/${guild.id}/${guild.icon}.webp?size=256`;
|
|
||||||
|
if (guild.icon.startsWith('a_')) {
|
||||||
|
icon.src = `https:\/\/cdn.discordapp.com/icons/${guild.id}/${guild.icon}.gif?size=256`;
|
||||||
|
} else {
|
||||||
|
icon.src = `https:\/\/cdn.discordapp.com/icons/${guild.id}/${guild.icon}.webp?size=256`;
|
||||||
|
}
|
||||||
|
|
||||||
guildContainer.appendChild(icon);
|
guildContainer.appendChild(icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user