add clan badges
Some checks failed
Code quality checks / biome (push) Failing after 8s

This commit is contained in:
creations 2025-04-18 04:31:25 -04:00
parent b109f67125
commit 7816210a2c
Signed by: creations
GPG key ID: 8F553AA4320FC711
2 changed files with 55 additions and 2 deletions

View file

@ -48,7 +48,15 @@
<% } %>
</div>
<div class="user-info">
<h1><%= username %></h1>
<div class="user-info-inner">
<h1><%= username %></h1>
<% if (user.clan) { %>
<div class="clan-badge">
<img src="https://cdn.discordapp.com/clan-badges/<%= user.clan.identity_guild_id %>/<%= user.clan.badge %>" alt="Clan Badge" class="clan-badge">
<span class="clan-name"><%= user.clan.tag %></span>
</div>
<% } %>
</div>
<% if (activities.length && activities[0].type === 4) {
const emoji = activities[0].emoji;
const isCustom = emoji?.id;