Skip to content

Commit

Permalink
add kwargs to message init
Browse files Browse the repository at this point in the history
  • Loading branch information
RLKRo committed Feb 28, 2024
1 parent 6e74128 commit ac34686
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dff/script/core/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@ def __init__(
attachments: Optional[Attachments] = None,
annotations: Optional[dict] = None,
misc: Optional[dict] = None,
**kwargs,
):
super().__init__(text=text, commands=commands, attachments=attachments, annotations=annotations, misc=misc)
super().__init__(
text=text, commands=commands, attachments=attachments, annotations=annotations, misc=misc, **kwargs
)

def __eq__(self, other):
if isinstance(other, Message):
Expand Down

0 comments on commit ac34686

Please sign in to comment.