Class ChannelSubscriptionMessageEvent


public class ChannelSubscriptionMessageEvent extends EventSubUserChannelEvent
  • Constructor Details

    • ChannelSubscriptionMessageEvent

      public ChannelSubscriptionMessageEvent()
  • Method Details

    • getTier

      public SubscriptionPlan getTier()
      The tier of the user’s subscription.
    • getMessage

      public Message getMessage()
      An object that contains the re-subscription message and emote information needed to recreate the message.
    • getCumulativeMonths

      public Integer getCumulativeMonths()
      The total number of months the user has been subscribed to the channel.
    • getStreakMonths

      @Nullable public @Nullable Integer getStreakMonths()
      The number of consecutive months the user’s current subscription has been active. This value is null if the user has opted out of sharing this information.
    • getDurationMonths

      public Integer getDurationMonths()
      The month duration of the subscription.
    • toString

      public String toString()
      Overrides:
      toString in class EventSubUserChannelEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class EventSubUserChannelEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class EventSubUserChannelEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EventSubUserChannelEvent