diff --git a/interactions/api/events/processors/auto_mod.py b/interactions/api/events/processors/auto_mod.py index 8e766e456..31f08476f 100644 --- a/interactions/api/events/processors/auto_mod.py +++ b/interactions/api/events/processors/auto_mod.py @@ -14,7 +14,7 @@ class AutoModEvents(EventMixinTemplate): @Processor.define() async def _raw_auto_moderation_action_execution(self, event: "RawGatewayEvent") -> None: action = AutoModerationAction.from_dict(event.data.copy(), self) - channel = self.get_channel(event.data["channel_id"]) + channel = self.get_channel(event.data.get("channel_id")) guild = self.get_guild(event.data["guild_id"]) self.dispatch(events.AutoModExec(action, channel, guild)) diff --git a/interactions/models/discord/enums.py b/interactions/models/discord/enums.py index d8a3d2523..69e1cfbee 100644 --- a/interactions/models/discord/enums.py +++ b/interactions/models/discord/enums.py @@ -968,6 +968,7 @@ class AuditLogEventType(CursedIntEnum): AUTO_MODERATION_BLOCK_MESSAGE = 143 AUTO_MODERATION_FLAG_TO_CHANNEL = 144 AUTO_MODERATION_USER_COMMUNICATION_DISABLED = 145 + AUTO_MODERATION_QUARANTINE = 146 CREATOR_MONETIZATION_REQUEST_CREATED = 150 CREATOR_MONETIZATION_TERMS_ACCEPTED = 151 ROLE_PROMPT_CREATE = 160