Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 7TV emotes not using custom names #291

Conversation

tommyxchow
Copy link
Owner

@tommyxchow tommyxchow commented Nov 1, 2023

Fixes (#289).

This PR fixes a case where 7TV emotes were not being shown/parsed correctly if the channel had set a custom name for that emote.

With the 7TV V3 API, emotes have 2 different name fields, the first on the top level as name and the second in data -> name. The former will change automatically if the channel has set a custom name for it, while the latter will not change and is the "real" name of the emote.

I mistakenly thought the latter had the behavior of the former and used that field. Now, the former field will be used and checked to see if we should show the real name in the emote details.

@tommyxchow tommyxchow added the bug fix A fix for a bug label Nov 1, 2023
@tommyxchow tommyxchow self-assigned this Nov 1, 2023
@tommyxchow tommyxchow merged commit bc67aad into main Nov 1, 2023
1 check passed
@tommyxchow tommyxchow deleted the 289-frosty-does-not-recognize-when-a-channel-has-a-custom-name-for-a-7tv-emote branch November 1, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frosty does not recognize when a channel has a custom name for a 7tv emote
1 participant