Class AbstractChannelEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Direct Known Subclasses:
AbstractChannelMessageEvent, BitsBadgeEarnedEvent, ChannelJoinEvent, ChannelLeaveEvent, ChannelModEvent, ChannelNoticeEvent, ChannelStateEvent, ChannelStatesEvent, CharityDonationEvent, CheerEvent, ClearChatEvent, DeleteMessageEvent, DonationEvent, ExtendSubscriptionEvent, FollowEvent, GiftedMultiMonthSubCourtesyEvent, GiftSubscriptionsEvent, GiftSubUpgradeEvent, HostOffEvent, HostOnEvent, ListModsEvent, ListVipsEvent, MessageDeleteError, MessageDeleteSuccess, ModAnnouncementEvent, PayForwardEvent, PrimeGiftReceivedEvent, PrimeSubUpgradeEvent, RaidCancellationEvent, RaidEvent, RewardGiftEvent, RitualEvent, SubscriptionEvent, UserBanEvent, UserStateEvent, UserTimeoutEvent, ViewerMilestoneEvent

public class AbstractChannelEvent extends TwitchEvent
This event is a base for events that originate from a channel
  • Constructor Details

    • AbstractChannelEvent

      public AbstractChannelEvent(EventChannel channel)
      Event Constructor
      Parameters:
      channel - The channel that this event originates from.
    • AbstractChannelEvent

      public AbstractChannelEvent()
  • Method Details

    • timeout

      @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public void timeout(String user, Duration duration, String reason)
      Deprecated.
      Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUser
      Timeout a user
      Parameters:
      user - username
      duration - duration
      reason - reason
    • ban

      @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public void ban(String user, String reason)
      Deprecated.
      Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUser
      Ban a user
      Parameters:
      user - username
      reason - reason
    • unban

      @Deprecated @ScheduledForRemoval(inVersion="2.0.0") public void unban(String user)
      Deprecated.
      Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#unbanUser
      Unban a user
      Parameters:
      user - username
    • toString

      public String toString()
      Overrides:
      toString in class TwitchEvent
    • getChannel

      public EventChannel getChannel()
      Event Channel
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class TwitchEvent