Skip to content

Commit

Permalink
feat: ClientManagerにClientNoteManagerの生成を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Nov 29, 2023
1 parent 0f59ac4 commit e848de0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mipac/manager/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from mipac.manager.emoji import EmojiManager
from mipac.manager.follow import FollowManager, FollowRequestManager
from mipac.manager.my import MyManager
from mipac.manager.note import NoteManager
from mipac.manager.note import ClientNoteManager, NoteManager
from mipac.manager.role import RoleManager
from mipac.manager.user import UserManager

Expand Down Expand Up @@ -63,5 +63,9 @@ def _create_note_instance(self, note_id: str) -> NoteManager:
def _create_channel_instance(self, channel_id: str) -> ChannelManager:
return ChannelManager(channel_id=channel_id, session=self.__session, client=self)

def _create_client_note_manager(self, note_id: str) -> ClientNoteManager:
return ClientNoteManager(note_id=note_id, session=self.__session, client=self)


async def get_me(self) -> UserDetailed:
return await self.user.action.get_me()

0 comments on commit e848de0

Please sign in to comment.