all repos — stealth-developers @ 4cdbb9b271bdd3f8da8da6b6f43e0834fe69fbb4

bot: more accurate title for unbans
vi did:web:vt3e.cat
Fri, 03 Jul 2026 18:54:46 +0100
commit

4cdbb9b271bdd3f8da8da6b6f43e0834fe69fbb4

parent

dac60acf3e735d01339e2f08261ceea98eca4efe

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M apps/bot/src/feats/roblox/user.tsapps/bot/src/feats/roblox/user.ts

@@ -175,7 +175,6 @@ "duration" in log && log.duration

? calculateBanDuration(new Date(log.createTime), log.duration) : "permanent"; - // Check if restriction is active (unbanned users have active set to false) const isActive = log.active !== false; const statusLabel = isActive ? "Expires" : "Status";

@@ -184,6 +183,7 @@ ? duration === "permanent"

? "Permanent" : `<t:${Math.round(duration.getTime() / 1000)}:R>` : "Ban removed"; + const isUnbanned = statusValue === "Ban removed"; const reason = log.displayReason || "No reason specified"; const moderator = log.bannedBy;

@@ -191,7 +191,9 @@

banContainer.addTextDisplayComponents( new TextDisplayBuilder().setContent( [ - `**Banned in ${log.projectName}** - <t:${banTime}:d> (<t:${banTime}:R>)`, + isUnbanned + ? `**Banned in ${log.projectName}** - <t:${banTime}:d> (<t:${banTime}:R>)` + : `**Unbanned** from ${log.projectName} - <t:${banTime}:d> (<t:${banTime}:R>)`, `> **${statusLabel}:** ${statusValue}`, `> **Reason:** ${reason}`, `> **Moderator:** [${moderator.displayName || moderator.username}](https://www.roblox.com/users/${moderator.id})`,