#[non_exhaustive]pub enum Reward {
Emote {
group_id: String,
id: EmoteId,
reward_level: i64,
token: Option<String>,
set_id: Option<EmoteSetId>,
},
Badge {
badge_id: ChatBadgeId,
group_id: String,
id: String,
image_url: String,
reward_level: i64,
},
}use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
pubsub and unsupported only.Expand description
A reward
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Emote
use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Reward is a emote
Fields
group_id: Stringuse EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Group ID of emote
id: EmoteIduse EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
ID of emote
reward_level: i64use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Level that this emote is from
token: Option<String>use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Token for this emote
set_id: Option<EmoteSetId>use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
ID of emote set
Badge
use EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Reward is a badge
Fields
badge_id: ChatBadgeIduse EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
ID of badge
group_id: Stringuse EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
Group ID of badge
id: Stringuse EventSub instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043
ID of badge in this object