This commit is contained in:
2026-01-15 17:38:22 +01:00
parent 992736167c
commit 3c3799dfd5
3 changed files with 3 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ interface user {
token: string; token: string;
password: string; password: string;
dev: boolean; dev: boolean;
bot: boolean;
} }
interface message { interface message {

View File

@@ -125,7 +125,7 @@ function Message({author, content, inline = false, bottom = false, timestamp = 0
return ( return (
<div className={`message ${inline ? "inline" : ""} ${bottom ? "bottom" : ""} ${hasSent ? "" : "sending"} ${mention ? "mentionsyou" : ""}`}> <div className={`message ${inline ? "inline" : ""} ${bottom ? "bottom" : ""} ${hasSent ? "" : "sending"} ${mention ? "mentionsyou" : ""}`}>
{!inline ? <img className="messagePfp" src={`/pfps/${author.pfp}.png`} width={48} height={48}></img> : ""} {!inline ? <img className="messagePfp" src={`/pfps/${author.pfp}.png`} width={48} height={48}></img> : ""}
{!inline ? <div className="messageAuthor"><span>{self.dev ? `${author.name} (${author.username}, ${author.id})` : author.name ?? author.username}</span> {author.dev ? <Badge text="DEV" /> : ""} <Timestamp ts={timestamp} /></div> : ""} {!inline ? <div className="messageAuthor"><span>{self.dev ? `${author.name} (${author.username}, ${author.id})` : author.name ?? author.username}</span> {author.dev ? <Badge text="DEV" /> : ""} {author.bot && <Badge text="BOT" />} <Timestamp ts={timestamp} /></div> : ""}
<div className="messageContent">{formattedContent}</div> <div className="messageContent">{formattedContent}</div>
</div> </div>
) )

View File

@@ -8,4 +8,5 @@ export interface user {
token: null, token: null,
password: null, password: null,
dev: boolean; dev: boolean;
bot: boolean;
} }