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

Commit

Permalink
fix: give defaults to content vars for automod actions (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS authored Aug 12, 2022
1 parent 4b3f977 commit 3b1d954
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 3b1d954

Please sign in to comment.