com.github.twitch4j.eventsub.events.AutomodMessageHoldEvent Maven / Gradle / Ivy
The newest version!
package com.github.twitch4j.eventsub.events;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.github.twitch4j.common.enums.TwitchEnum;
import com.github.twitch4j.common.util.TwitchEnumDeserializer;
import com.github.twitch4j.eventsub.domain.AutomodCategory;
import com.github.twitch4j.eventsub.domain.chat.Message;
import lombok.AccessLevel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import java.time.Instant;
@Data
@Setter(AccessLevel.PRIVATE)
@EqualsAndHashCode(callSuper = true)
public class AutomodMessageHoldEvent extends EventSubUserChannelEvent {
/**
* The ID of the message that was flagged by automod.
*/
private String messageId;
/**
* The body of the message.
*/
private Message message;
/**
* The category of the message offense.
*/
@JsonDeserialize(using = TwitchEnumDeserializer.class)
private TwitchEnum category;
/**
* The level of severity. Measured between 1 to 4.
*/
private int level;
/**
* The timestamp of when automod saved the message.
*/
private Instant heldAt;
}