fix: Noteモデルにapiプロパティが無い

feat/v13/notes
yupix 10 months ago
parent e848de0152
commit 4f610a7a7b
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -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

Loading…
Cancel
Save