From f89d8df8c578b7b380a663389376c80d14e2fe2b Mon Sep 17 00:00:00 2001 From: Chenwe_i_lin <1846913566@qq.com> Date: Wed, 26 Feb 2020 22:43:11 +0800 Subject: [PATCH] fix: some --- mirai/protocol.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mirai/protocol.py b/mirai/protocol.py index 3c63fb9..72bb586 100644 --- a/mirai/protocol.py +++ b/mirai/protocol.py @@ -165,15 +165,13 @@ async def unmuteAll(self, group: T.Union[Group, int]) -> bool: async def memberInfo(self, group: T.Union[Group, int], - member: T.Union[Member, int], - info: MemberChangeableSetting + member: T.Union[Member, int] ): return MemberChangeableSetting.parse_obj(assertOperatorSuccess( await fetch.http_get(f"{self.baseurl}/memberInfo", { "sessionKey": self.session_key, "target": self.handleTargetAsGroup(group), - "memberId": self.handleTargetAsMember(member), - "info": json.loads(info.json()) + "memberId": self.handleTargetAsMember(member) } ), raise_exception=True, return_as_is=True))