mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 08:08:54 +00:00
feat(EmojiRun): Add is_custom to identify custom emojis (#283)
This commit is contained in:
@@ -7,6 +7,7 @@ class EmojiRun {
|
||||
shortcuts: string[];
|
||||
search_terms: string[];
|
||||
image: Thumbnail[];
|
||||
is_custom: boolean;
|
||||
};
|
||||
|
||||
constructor(data: any) {
|
||||
@@ -19,7 +20,8 @@ class EmojiRun {
|
||||
emoji_id: data.emoji.emojiId,
|
||||
shortcuts: data.emoji?.shortcuts || [],
|
||||
search_terms: data.emoji?.searchTerms || [],
|
||||
image: Thumbnail.fromResponse(data.emoji.image)
|
||||
image: Thumbnail.fromResponse(data.emoji.image),
|
||||
is_custom: !!data.emoji?.isCustomEmoji
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user