Skip to content

Commit 644b82f

Browse files
committed
Add new AutoMod type
1 parent 09f18bc commit 644b82f

File tree

1 file changed

+3
-0
lines changed
  • src/model/guild/audit_log

1 file changed

+3
-0
lines changed

src/model/guild/audit_log/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ impl Action {
119119
143 => Action::AutoMod(AutoModAction::BlockMessage),
120120
144 => Action::AutoMod(AutoModAction::FlagToChannel),
121121
145 => Action::AutoMod(AutoModAction::UserCommunicationDisabled),
122+
146 => Action::AutoMod(AutoModAction::QuarantineUser),
122123
150 => Action::CreatorMonetization(CreatorMonetizationAction::RequestCreated),
123124
151 => Action::CreatorMonetization(CreatorMonetizationAction::TermsAccepted),
124125
192 => Action::VoiceChannelStatus(VoiceChannelStatusAction::StatusUpdate),
@@ -290,6 +291,7 @@ pub enum AutoModAction {
290291
BlockMessage = 143,
291292
FlagToChannel = 144,
292293
UserCommunicationDisabled = 145,
294+
QuarantineUser = 146,
293295
}
294296

295297
/// [Discord docs](https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events).
@@ -482,6 +484,7 @@ mod tests {
482484
assert_action!(Action::AutoMod(AutoModAction::BlockMessage), 143);
483485
assert_action!(Action::AutoMod(AutoModAction::FlagToChannel), 144);
484486
assert_action!(Action::AutoMod(AutoModAction::UserCommunicationDisabled), 145);
487+
assert_action!(Action::AutoMod(AutoModAction::QuarantineUser), 146);
485488
assert_action!(Action::CreatorMonetization(CreatorMonetizationAction::RequestCreated), 150);
486489
assert_action!(Action::CreatorMonetization(CreatorMonetizationAction::TermsAccepted), 151);
487490
assert_action!(Action::VoiceChannelStatus(VoiceChannelStatusAction::StatusUpdate), 192);

0 commit comments

Comments
 (0)