twitch-rs / twitch_api

Rust library for talking with the Twitch API aka. "Helix", TMI and more! Use Twitch endpoints fearlessly!
Apache License 2.0
151 stars 33 forks source link

`SubscriptionMessage` shouldn't be tied to subscriptions #450

Open Nerixyz opened 5 days ago

Nerixyz commented 5 days ago

We currently define a message as a eventsub::channel::subscription::message::SubscriptionMessage. Other events also use that message, such as channel.channel_points_automatic_reward_redemption.add. Thus, the type shouldn't be tied to subscriptions.

This also involves renaming ResubscriptionEmote to... something else.

In an ideal world, Twitch would have a single message type.