Class GiftSubscriptionsEvent

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.GiftSubscriptionsEvent
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class GiftSubscriptionsEvent extends AbstractChannelEvent
This event gets called when a user gifts x subscriptions to *random* users in chat.

This event will be called simultaneously with the chat announcement, not necessarily when the user presses the subscription button.

  • Constructor Details

    • GiftSubscriptionsEvent

      public GiftSubscriptionsEvent(EventChannel channel, EventUser user, String subscriptionPlan, Integer count, Integer totalCount)
      Event Constructor
      Parameters:
      channel - The channel that this event originates from.
      user - The user that gifted the subscriptions
      subscriptionPlan - The subscription plan
      count - The total amount of subs gifted
      totalCount - The amount the user gifted in total (all time)
  • Method Details