@@ -70,6 +70,14 @@ pub enum MessageType {
7070 StageTopic ,
7171 /// System message denoting a guild application premium subscription.
7272 GuildApplicationPremiumSubscription ,
73+ /// System message denoting a guild auto moderation incident alerts are enabled.
74+ GuildIncidentAlertModeEnabled ,
75+ /// System message denoting a guild auto moderation incident alerts are disabled.
76+ GuildIncidentAlertModeDisabled ,
77+ /// System message denoting a guild raid incident report.
78+ GuildIncidentReportRaid ,
79+ /// System message denoting a false positive guild raid incident report.
80+ GuildIncidentReportRaidFalseAlarm ,
7381 /// Variant value is unknown to the library.
7482 Unknown ( u8 ) ,
7583}
@@ -111,6 +119,11 @@ impl MessageType {
111119 | Self :: StageEnd
112120 | Self :: StageSpeaker
113121 | Self :: StageTopic
122+ | Self :: GuildApplicationPremiumSubscription
123+ | Self :: GuildIncidentAlertModeEnabled
124+ | Self :: GuildIncidentAlertModeDisabled
125+ | Self :: GuildIncidentReportRaid
126+ | Self :: GuildIncidentReportRaidFalseAlarm
114127 )
115128 }
116129
@@ -173,6 +186,10 @@ impl From<u8> for MessageType {
173186 29 => Self :: StageSpeaker ,
174187 31 => Self :: StageTopic ,
175188 32 => Self :: GuildApplicationPremiumSubscription ,
189+ 36 => Self :: GuildIncidentAlertModeEnabled ,
190+ 37 => Self :: GuildIncidentAlertModeDisabled ,
191+ 38 => Self :: GuildIncidentReportRaid ,
192+ 39 => Self :: GuildIncidentReportRaidFalseAlarm ,
176193 unknown => Self :: Unknown ( unknown) ,
177194 }
178195 }
@@ -212,6 +229,10 @@ impl From<MessageType> for u8 {
212229 MessageType :: StageSpeaker => 29 ,
213230 MessageType :: StageTopic => 31 ,
214231 MessageType :: GuildApplicationPremiumSubscription => 32 ,
232+ MessageType :: GuildIncidentAlertModeEnabled => 36 ,
233+ MessageType :: GuildIncidentAlertModeDisabled => 37 ,
234+ MessageType :: GuildIncidentReportRaid => 38 ,
235+ MessageType :: GuildIncidentReportRaidFalseAlarm => 39 ,
215236 MessageType :: Unknown ( unknown) => unknown,
216237 }
217238 }
@@ -280,7 +301,11 @@ mod tests {
280301 ( MessageType :: StageEnd , 28 , true ) ,
281302 ( MessageType :: StageSpeaker , 29 , true ) ,
282303 ( MessageType :: StageTopic , 31 , true ) ,
283- ( MessageType :: GuildApplicationPremiumSubscription , 32 , false ) ,
304+ ( MessageType :: GuildApplicationPremiumSubscription , 32 , true ) ,
305+ ( MessageType :: GuildIncidentAlertModeEnabled , 36 , true ) ,
306+ ( MessageType :: GuildIncidentAlertModeDisabled , 37 , true ) ,
307+ ( MessageType :: GuildIncidentReportRaid , 38 , true ) ,
308+ ( MessageType :: GuildIncidentReportRaidFalseAlarm , 39 , true ) ,
284309 ] ;
285310
286311 for ( message_type, number, deletable) in MAP {
0 commit comments