Class ChannelJoinFailureEvent

java.lang.Object
com.github.twitch4j.chat.events.channel.ChannelJoinFailureEvent

public final class ChannelJoinFailureEvent extends Object
A chat instance failed to join (or stay joined to) a channel AND removeChannelOnJoinFailure was enabled, resulting in removal from the instance's current channels.
  • Constructor Details

    • ChannelJoinFailureEvent

      public ChannelJoinFailureEvent(String channelName, ChannelJoinFailureEvent.Reason reason)
      Creates a new ChannelJoinFailureEvent instance.
      Parameters:
      channelName - The name of the channel that the chat instance was unable to join.
      reason - The inferred reason for the join failure.
  • Method Details

    • getChannelName

      public String getChannelName()
      The name of the channel that the chat instance was unable to join.
    • getReason

      public ChannelJoinFailureEvent.Reason getReason()
      The inferred reason for the join failure.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object