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
150 stars 33 forks source link

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

Closed Nerixyz closed 2 hours ago

Nerixyz commented 2 weeks 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.