Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interactions/api/events/processors/auto_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
1 change: 1 addition & 0 deletions interactions/models/discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down