import LogType from 'constants/logType' ; /**
 * Message rejected by AutoMod.
 */ export default class RejectedMessage implements Serializable < SerializedRejectedMessage > { param messageId return public static getRejectedMessageInternalId ( messageId ) { return `_rejected_${ messageId }` ; } private id : string ; private handled : boolean ; class param username param messageId param message param reason constructor ( private username , private messageId , private message , private reason ) { this . id = RejectedMessage . getRejectedMessageInternalId ( messageId ) ; this . handled = false ; } return public serialize ( ) { return { handled : this . handled , id : this . id , message : this . message , messageId : this . messageId , reason : this . reason , type : LogType . RejectedMessage , username : this . username , } ; } } /**
 * Serialized message rejected by AutoMod.
 */ export type SerializedRejectedMessage = { handled : boolean ; id : string ; message : string ; messageId : string ; reason : string ; type : LogType ; username : string ; } ;