Class ExtendSubscriptionEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
com.github.twitch4j.chat.events.channel.ExtendSubscriptionEvent
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class ExtendSubscriptionEvent extends AbstractChannelEvent
Called when a user extends their existing subscription into a future month.
See Also:
  • Constructor Details

    • ExtendSubscriptionEvent

      public ExtendSubscriptionEvent(EventChannel channel, EventUser user, SubscriptionPlan subPlan, int cumulativeMonths, Month benefitEndMonth)
      Event Constructor
      Parameters:
      channel - The channel that this event originates from.
      user - The user extending their subscription.
      subPlan - The type of subscription plan being used.
      cumulativeMonths - The total number of months the user has subscribed.
      benefitEndMonth - The new month that the subscription will end on.
  • Method Details