Skip to content

Commit

Permalink
chore: Noteモデルに追加された reaction_emoji をサポート
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Mar 4, 2024
1 parent be56154 commit cf0286e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mipac/models/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ def reaction_acceptance(self) -> IReactionAcceptance:
"""
return self.__raw_note["reaction_acceptance"]

@property
def reaction_emoji(self) -> dict[str, str]:
return self.__raw_note["reaction_emoji"]

@property
def reactions(self) -> dict[str, int]:
"""Note reactions
Expand Down
1 change: 1 addition & 0 deletions mipac/types/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class INote(TypedDict):
channel: NotRequired[INoteChannel | None]
local_only: bool
reaction_acceptance: IReactionAcceptance
reaction_emoji: dict[str, str]
reactions: dict[str, int] # リアクションの種類と数
renote_count: int
replies_count: int
Expand Down

0 comments on commit cf0286e

Please sign in to comment.