mirror of
https://github.com/yusufipk/YTChatHub.git
synced 2026-09-11 19:06:14 +00:00
feat: add support for custom emojis and membership badges in chat display
This commit is contained in:
@@ -2,6 +2,7 @@ export type Badge = {
|
||||
type: 'moderator' | 'member' | 'verified' | 'custom';
|
||||
label?: string;
|
||||
icon?: string;
|
||||
imageUrl?: string; // For custom membership badges
|
||||
};
|
||||
|
||||
export type SuperChatInfo = {
|
||||
@@ -10,12 +11,19 @@ export type SuperChatInfo = {
|
||||
color: string;
|
||||
};
|
||||
|
||||
export type MessageRun = {
|
||||
text?: string;
|
||||
emojiUrl?: string;
|
||||
emojiAlt?: string;
|
||||
};
|
||||
|
||||
export type ChatMessage = {
|
||||
id: string;
|
||||
author: string;
|
||||
authorPhoto?: string;
|
||||
authorChannelId?: string;
|
||||
text: string;
|
||||
runs?: MessageRun[]; // structured runs for emojis
|
||||
publishedAt: string;
|
||||
badges?: Badge[];
|
||||
isModerator?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user