Class AutomodEnforceCheck

java.lang.Object
com.github.twitch4j.helix.domain.AutomodEnforceCheck

public final class AutomodEnforceCheck extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    AutomodEnforceCheck(@NotNull String message)
    Constructs a message object to be checked against AutoMod enforcement settings
    AutomodEnforceCheck(@NotNull String msgId, @NotNull String msgText, @Nullable String userId)
    Deprecated.
    The AutoMod service will no longer take into account the status of a user to determine whether a string message meets the channel’s AutoMod requirements on June 20, 2022
    AutomodEnforceCheck(@NotNull String message, @Nullable String senderId)
    Deprecated.
    senderId is deprecated by Twitch
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NotNull String
    Developer-generated identifier for mapping messages to results.
    @NotNull String
    Message text.
    @Nullable String
    Deprecated.
    The AutoMod service will no longer take into account the status of a user to determine whether a string message meets the channel’s AutoMod requirements on June 20, 2022
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AutomodEnforceCheck

      @Deprecated public AutomodEnforceCheck(@NotNull @NotNull String message, @Nullable @Nullable String senderId)
      Deprecated.
      senderId is deprecated by Twitch
      Constructs a message object to be checked against AutoMod enforcement settings
      Parameters:
      message - The message to be checked
      senderId - The channel in which the message should be checked
      See Also:
    • AutomodEnforceCheck

      public AutomodEnforceCheck(@NotNull @NotNull String message)
      Constructs a message object to be checked against AutoMod enforcement settings
      Parameters:
      message - The message to be checked
      See Also:
    • AutomodEnforceCheck

      public AutomodEnforceCheck(@NotNull @NotNull String msgId, @NotNull @NotNull String msgText, @Nullable @Nullable String userId)
      Deprecated.
      The AutoMod service will no longer take into account the status of a user to determine whether a string message meets the channel’s AutoMod requirements on June 20, 2022
      Creates a new AutomodEnforceCheck instance.
      Parameters:
      msgId - Developer-generated identifier for mapping messages to results.
      msgText - Message text.
      userId - User ID of the sender.
      See Also:
  • Method Details

    • getMsgId

      @NotNull public @NotNull String getMsgId()
      Developer-generated identifier for mapping messages to results.
    • getMsgText

      @NotNull public @NotNull String getMsgText()
      Message text.
    • getUserId

      @Deprecated @Nullable public @Nullable String getUserId()
      Deprecated.
      The AutoMod service will no longer take into account the status of a user to determine whether a string message meets the channel’s AutoMod requirements on June 20, 2022
      User ID of the sender.
      See Also:
    • 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