refactor: message component
This commit is contained in:
parent
02479072f6
commit
a646279b46
4 changed files with 34 additions and 46 deletions
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue