@@ -130,8 +130,8 @@ class AutomodMessageHold(BaseEvent):
130130 The text content of the message.
131131 level: int | None
132132 The level of severity. Measured between 1 to 4. This is `None` if the V2 endpoint is used and the reason is `blocked_term`.
133- category: str
134- The category of the message.
133+ category: str | None
134+ The category of the message. This is `None` if the V2 endpoint is used and the reason is `blocked_term`.
135135 held_at: datetime.datetime
136136 The datetime of when automod saved the message.
137137 fragments: list[ChatMessageFragment]
@@ -231,10 +231,10 @@ class AutomodMessageUpdate(AutomodMessageHold):
231231 The ID of the message that was flagged by automod.
232232 text: str
233233 The text content of the message.
234- level: int
235- The level of severity. Measured between 1 to 4.
236- category: str
237- The category of the message.
234+ level: int | None
235+ The level of severity. Measured between 1 to 4. This is `None` if the V2 endpoint is used and the reason is `blocked_term`.
236+ category: str | None
237+ The category of the message. This is `None` if the V2 endpoint is used and the reason is `blocked_term`.
238238 held_at: datetime.datetime
239239 The datetime of when automod saved the message.
240240 emotes: list[ChatMessageEmote]
@@ -249,6 +249,11 @@ class AutomodMessageUpdate(AutomodMessageHold):
249249 - Approved
250250 - Denied
251251 - Expired
252+
253+ reason: Literal["automod", "blocked_term"] | None
254+ The reason for the message being held. This is only populated for the V2 endpoint.
255+ boundaries: list[Boundary]
256+ The start and end index of the words caught by automod. This is only populated for the V2 endpoint and when the reason is `automod`.
252257 """
253258
254259 subscription_type = "automod.message.update"
0 commit comments