diff --git a/twilight-model/src/guild/audit_log/event_type.rs b/twilight-model/src/guild/audit_log/event_type.rs index e6e2672abeb..2354a84081d 100644 --- a/twilight-model/src/guild/audit_log/event_type.rs +++ b/twilight-model/src/guild/audit_log/event_type.rs @@ -226,6 +226,10 @@ pub enum AuditLogEventType { AutoModerationFlagToChannel, /// A member has been timed out by AutoMod. AutoModerationUserCommunicationDisabled, + /// Creator monetization request was created. + CreatorMonetizationRequestCreated, + /// Creator monetization terms were accepted. + CreatorMonetizationTermsAccepted, /// Variant value is unknown to the library. Unknown(u16), } @@ -287,6 +291,8 @@ impl From for AuditLogEventType { 143 => AuditLogEventType::AutoModerationBlockMessage, 144 => AuditLogEventType::AutoModerationFlagToChannel, 145 => AuditLogEventType::AutoModerationUserCommunicationDisabled, + 150 => AuditLogEventType::CreatorMonetizationRequestCreated, + 151 => AuditLogEventType::CreatorMonetizationTermsAccepted, unknown => AuditLogEventType::Unknown(unknown), } } @@ -349,6 +355,8 @@ impl From for u16 { AuditLogEventType::AutoModerationBlockMessage => 143, AuditLogEventType::AutoModerationFlagToChannel => 144, AuditLogEventType::AutoModerationUserCommunicationDisabled => 145, + AuditLogEventType::CreatorMonetizationRequestCreated => 150, + AuditLogEventType::CreatorMonetizationTermsAccepted => 151, AuditLogEventType::Unknown(unknown) => unknown, } } @@ -441,6 +449,14 @@ mod tests { 145, u16::from(AuditLogEventType::AutoModerationUserCommunicationDisabled) ); + assert_eq!( + 150, + u16::from(AuditLogEventType::CreatorMonetizationRequestCreated) + ); + assert_eq!( + 151, + u16::from(AuditLogEventType::CreatorMonetizationTermsAccepted) + ); assert_eq!(250, u16::from(AuditLogEventType::Unknown(250))); } }