Class AutomodMessageEvent

Direct Known Subclasses:
AutomodMessageHoldV2Event, AutomodMessageUpdateV2Event

public abstract class AutomodMessageEvent extends EventSubUserChannelEvent
  • Constructor Details

    • AutomodMessageEvent

      public AutomodMessageEvent()
  • Method Details

    • getMessageId

      public String getMessageId()
      The ID of the message that was flagged by automod.
    • getMessage

      public Message getMessage()
      The body of the message.
    • getReason

      public AutomodCaughtReason getReason()
      Whether the message was caught by automod or blocked term usage.
    • getAutomod

      @Nullable public @Nullable Automod getAutomod()
      Optional: If the message was caught by automod, this will be populated.
    • getBlockedTerm

      @Nullable public @Nullable BlockedTermWrapper getBlockedTerm()
      Optional: If the message was caught due to a blocked term, this will be populated.
    • getHeldAt

      public Instant getHeldAt()
      The timestamp of when automod saved the message.
    • toString

      public String toString()
      Overrides:
      toString in class EventSubUserChannelEvent
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class EventSubUserChannelEvent