refactor: message component
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-08-07 22:14:04 +02:00
parent 02479072f6
commit a646279b46
Signed by: twig
SSH key fingerprint: SHA256:nBO+OwpTkd8LYhe38PIqdxmDvkIg9Vw2EbrRZM97dkU
4 changed files with 34 additions and 46 deletions

View file

@ -1,21 +1,9 @@
import type { GuildMemberResponse, MessageResponse, UserResponse } from "./interfaces";
import type { MessageResponse, UserResponse } from "./interfaces";
export interface MessageProps {
class?: string,
img?: string | null,
author: GuildMemberResponse
text: string,
timestamp: number,
format: "12" | "24",
type: "normal" | "grouped",
marginBottom: boolean,
authorColor: string,
last: boolean,
messageId: string,
replyingTo?: boolean,
editing?: boolean,
me: UserResponse
message: MessageResponse,
replyMessage?: MessageResponse
replyMessage?: MessageResponse,
type: "normal" | "grouped",
editing?: boolean,
isMentioned?: boolean,
}