mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-11 19:06:14 +00:00
28 lines
593 B
TypeScript
28 lines
593 B
TypeScript
export type Badge = {
|
|
type: 'moderator' | 'member' | 'verified' | 'custom';
|
|
label?: string;
|
|
icon?: string;
|
|
};
|
|
|
|
export type SuperChatInfo = {
|
|
amount: string;
|
|
currency: string;
|
|
color: string;
|
|
};
|
|
|
|
export type ChatMessage = {
|
|
id: string;
|
|
author: string;
|
|
authorPhoto?: string;
|
|
text: string;
|
|
publishedAt: string;
|
|
badges?: Badge[];
|
|
isModerator?: boolean;
|
|
isMember?: boolean;
|
|
isVerified?: boolean;
|
|
superChat?: SuperChatInfo;
|
|
membershipGift?: boolean;
|
|
membershipGiftPurchase?: boolean;
|
|
membershipLevel?: string; // e.g., "New member", "Member (6 months)", etc.
|
|
};
|