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

Add ability to hide Twitch Prediction badges #2668

Merged
merged 3 commits into from Apr 25, 2021

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented Apr 23, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

This makes predictions badges being acknowledged as an actual separate message element on its own, thus making it possible to configure those (which I also added in this PR).

Examples of messages with those badges:

@badge-info=predictions/No;badges=predictions/pink-2,vip/1;color=#DAA520;display-name=Somso2e;emotes=;flags=;id=cc518b04-801a-473d-85c4-af139d7dd520;mod=0;room-id=99631238;subscriber=0;tmi-sent-ts=1619164205224;turbo=0;user-id=153573952;user-type= :somso2e!somso2e@somso2e.tmi.twitch.tv PRIVMSG #zneix :-tags
@badge-info=predictions/Yes;badges=predictions/blue-1;color=#0000FF;display-name=Hpixpoke;emotes=;flags=;id=02cfc1c1-8ce8-4d7b-b9e7-64b6d8da1a30;mod=0;room-id=99631238;subscriber=0;tmi-sent-ts=1619164206713;turbo=0;user-id=108748290;user-type= :hpixpoke!hpixpoke@hpixpoke.tmi.twitch.tv PRIVMSG #zneix :-tags

I also reordered MessageElementFlag enums and added some missing comments regarding Chatterino badges (no idea whether we should keep those really or not - 10:39:34.373 pajlada: I wonder if we need to keep a list of badges in general).

Closes #2664

@pajlada pajlada changed the title Added MessageElementFlag for predictions badges Add ability to hide Twitch Prediction badges Apr 25, 2021
@pajlada pajlada merged commit c3d61ad into Chatterino:master Apr 25, 2021
@zneix zneix deleted the feature/add-predictions-badge-enums branch April 25, 2021 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to hide prediction badges in chat
3 participants