Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: give defaults to content vars for automod actions #600

Merged
merged 1 commit into from
Aug 12, 2022
Merged
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
6 changes: 3 additions & 3 deletions naff/models/discord/auto_mod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Union, Any
from typing import TYPE_CHECKING, Union, Any, Optional

import attrs

Expand Down Expand Up @@ -283,8 +283,8 @@ class AutoModerationAction(ClientObject):
action: BaseAction = field(default=MISSING, repr=True)

matched_keyword: str = field(repr=True)
matched_content: str = field()
content: str = field()
matched_content: Optional[str] = field(default=None)
content: Optional[str] = field(default=None)

_message_id: Union["Snowflake_Type", None] = field(default=None)
_alert_system_message_id: "Snowflake_Type" = field()
Expand Down