Skip to content

Commit

Permalink
refactor: include zero-width emote flag
Browse files Browse the repository at this point in the history
  • Loading branch information
6lr61 committed Sep 19, 2024
1 parent a75ff6d commit ac4bbad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useSevenTvEmotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export interface SevenTVEmoteFragment {
text: string;
animated: boolean;
global: boolean;
zeroWidth: boolean;
owner: {
login: string;
name: string;
Expand Down Expand Up @@ -201,6 +202,7 @@ function makeSevenTvFragments(
text: emote.name,
animated: emote.data.animated,
global: global ?? false,
zeroWidth: Boolean(emote.flags & ActiveEmoteFlag.ZeroWidth),
owner: {
login: emote.data.owner.username,
name: emote.data.owner.display_name,
Expand Down

0 comments on commit ac4bbad

Please sign in to comment.