Skip to content

Commit

Permalink
chore: promote channel.subscription.end eventsub to v1 (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed May 30, 2021
1 parent 42a3f9a commit a3859eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
import com.github.twitch4j.eventsub.events.ChannelUnsubscribeEvent;

/**
* The channel.unsubscribe subscription type sends a notification when a subscription to the specified channel expires.
* The channel.subscription.end subscription type sends a notification when a subscription to the specified channel expires.
* <p>
* Must have channel:read:subscriptions scope.
* <p>
* Unless otherwise noted, EventSub subscriptions that were released as a public beta will be available for 30 days after their v1 version is released. Subscriptions should be updated to v1 during this timeframe.
* Any active beta subscriptions beyond 30 days will be automatically deleted.
*/
public class BetaChannelUnsubscribeType implements SubscriptionType<ChannelUnsubscribeCondition, ChannelUnsubscribeCondition.ChannelUnsubscribeConditionBuilder<?, ?>, ChannelUnsubscribeEvent> {
public class ChannelSubscriptionEndType implements SubscriptionType<ChannelUnsubscribeCondition, ChannelUnsubscribeCondition.ChannelUnsubscribeConditionBuilder<?, ?>, ChannelUnsubscribeEvent> {

@Override
public String getName() {
return "channel.unsubscribe";
return "channel.subscription.end";
}

@Override
public String getVersion() {
return "beta";
return "1";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SubscriptionTypes {
public final ChannelPointsCustomRewardUpdateType CHANNEL_POINTS_CUSTOM_REWARD_UPDATE;
public final ChannelRaidType CHANNEL_RAID;
public final ChannelSubscribeType CHANNEL_SUBSCRIBE;
@Unofficial public final BetaChannelUnsubscribeType BETA_CHANNEL_UNSUBSCRIBE;
public final ChannelSubscriptionEndType CHANNEL_SUBSCRIPTION_END;
public final ChannelUnbanType CHANNEL_UNBAN;
public final ChannelUpdateType CHANNEL_UPDATE;
public final HypeTrainBeginType HYPE_TRAIN_BEGIN;
Expand Down Expand Up @@ -61,7 +61,7 @@ public class SubscriptionTypes {
CHANNEL_POINTS_CUSTOM_REWARD_UPDATE = new ChannelPointsCustomRewardUpdateType(),
CHANNEL_RAID = new ChannelRaidType(),
CHANNEL_SUBSCRIBE = new ChannelSubscribeType(),
BETA_CHANNEL_UNSUBSCRIBE = new BetaChannelUnsubscribeType(),
CHANNEL_SUBSCRIPTION_END = new ChannelSubscriptionEndType(),
CHANNEL_UNBAN = new ChannelUnbanType(),
CHANNEL_UPDATE = new ChannelUpdateType(),
HYPE_TRAIN_BEGIN = new HypeTrainBeginType(),
Expand Down

0 comments on commit a3859eb

Please sign in to comment.