From 4f610a7a7b893360444338f12c9f78f96db5acd7 Mon Sep 17 00:00:00 2001 From: yupix Date: Wed, 29 Nov 2023 10:51:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Note=E3=83=A2=E3=83=87=E3=83=AB=E3=81=AB?= =?UTF-8?q?api=E3=83=97=E3=83=AD=E3=83=91=E3=83=86=E3=82=A3=E3=81=8C?= =?UTF-8?q?=E7=84=A1=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/models/note.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mipac/models/note.py b/mipac/models/note.py index 0cef6f2..155f274 100644 --- a/mipac/models/note.py +++ b/mipac/models/note.py @@ -23,6 +23,8 @@ from mipac.utils.util import deprecated if TYPE_CHECKING: from mipac.manager.client import ClientManager + from mipac.manager.note import ClientNoteManager + __all__ = ( "NoteState", @@ -583,6 +585,16 @@ class Note: """ return self.__raw_note.get('my_reaction') + @property + def api(self) -> ClientNoteManager: + """note api + + Returns + ------- + ClientNoteManager + note api + """ + return self.__client._create_client_note_manager(note_id=self.id) def __eq__(self, __value: object) -> bool: return isinstance(__value, Note) and self.id == __value.id