Class ChannelBanEvent


public class ChannelBanEvent
extends EventSubModerationEvent
  • Constructor Details

    • ChannelBanEvent

      public ChannelBanEvent()
  • Method Details

    • getReason

      public java.lang.String getReason()
      The reason behind the ban.
    • getEndsAt

      @Nullable public @Nullable java.time.Instant getEndsAt()
      Will be null if permanent ban. If it is a timeout, this field shows when the timeout will end.
    • isPermanent

      public java.lang.Boolean isPermanent()
      Indicates whether the ban is permanent (true) or a timeout (false). If true, getEndsAt() will be null.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class EventSubModerationEvent
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class EventSubModerationEvent
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
      Overrides:
      canEqual in class EventSubModerationEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EventSubModerationEvent